> ## Documentation Index
> Fetch the complete documentation index at: https://doc.haipay.net/llms.txt
> Use this file to discover all available pages before exploring further.

# 尼日利亚奈拉代收申请

<div class="flex flex-col gap-4">
  <div class="api-section-heading flex flex-col gap-y-4 w-full">
    <div class="flex items-baseline border-b pb-2.5 border-gray-100 dark:border-gray-800 w-full">
      <h4 class="api-section-heading-title flex-1 mb-0">密钥私钥(生成签名)</h4>
    </div>

    <div />
  </div>

  <input id="secret-key" placeholder="密钥" class="px-3 py-2 border rounded-md" />

  <input id="private-key" placeholder="私钥" class="px-3 py-2 border rounded-md" />
</div>

## 相关主题

* [尼日利亚支付接口](/docs/zh/api/version2/Nigeria)
* [HaiPay API 文档简介](/docs/zh/api-reference/overview)
* [HaiPay 配置与签名指南](/docs/zh/guide/config_settings_and_signature_rules_guide)


## OpenAPI

````yaml docs/zh/api-reference/ngn/ngn.openapi.json POST /ngn/collect/apply
openapi: 3.0.1
info:
  title: 尼日利亚奈拉 API
  description: ''
  version: 1.0.0
servers:
  - url: https://uat-interface.haipay.asia
    description: 测试环境
security: []
paths:
  /ngn/collect/apply:
    post:
      summary: 尼日利亚奈拉代收申请
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                appId:
                  type: integer
                  format: int64
                  description: 业务ID（后台获取，需与URL币种一致）
                orderId:
                  type: string
                  maxLength: 48
                  description: 商户订单号，必须唯一，最长48个字符
                amount:
                  type: string
                  pattern: ^((([1-9]\d*)(\.\d{1,4})?)|(0\.(?!0+$)\d{1,4}))$
                  description: 交易金额（NGN）；范围以商户后台业务配置范围为准。通用请求格式最多4位小数，渠道按2位小数处理
                payType:
                  type: string
                  description: 支付类型；按商户后台支付方式配置传入
                inBankCode:
                  type: string
                  description: 代收支付编码；按商户后台支付方式配置传入
                name:
                  type: string
                  description: 付款人姓名
                phone:
                  type: string
                  maxLength: 20
                  description: 付款人手机号
                email:
                  type: string
                  format: email
                  description: 付款人邮箱；未传时渠道使用默认邮箱
                callBackUrl:
                  type: string
                  format: uri
                  description: 支付成功跳转地址
                callBackFailUrl:
                  type: string
                  format: uri
                  description: 支付失败跳转地址
                notifyUrl:
                  type: string
                  format: uri
                  description: 异步通知地址
                subject:
                  type: string
                  description: 交易标题、商品名称或支付原因
                body:
                  type: string
                  description: 备注详情
                partnerUserId:
                  type: string
                  maxLength: 64
                  pattern: ^[a-zA-Z0-9\-~!@#$%&*()_]+$
                  description: 用户唯一标识
                sign:
                  type: string
                  description: 签名
              required:
                - appId
                - orderId
                - amount
                - sign
              additionalProperties: false
            example:
              appId: 1054
              orderId: NGNCOLLECT001
              amount: '100.00'
              email: john@example.com
              callBackUrl: https://merchant.example.com/success
              notifyUrl: https://merchant.example.com/notify
              sign: signature
      responses:
        '200':
          $ref: '#/components/responses/CollectApplyResponse'
components:
  responses:
    CollectApplyResponse:
      description: 成功
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/CollectApplyEnvelope'
  schemas:
    CollectApplyEnvelope:
      allOf:
        - $ref: '#/components/schemas/EnvelopeBase'
        - type: object
          properties:
            data:
              $ref: '#/components/schemas/CollectApplyData'
    EnvelopeBase:
      type: object
      properties:
        status:
          type: string
          description: 接口状态：1正常，0异常
        error:
          type: string
          description: 错误码
        msg:
          type: string
          description: 提示信息
    CollectApplyData:
      type: object
      properties:
        orderId:
          type: string
          description: 商户订单号
        orderNo:
          type: string
          description: 平台订单号
        amount:
          type: string
          description: 交易金额
        exchangeRate:
          type: string
          description: 汇率
        orderAmount:
          type: string
          description: 订单金额
        payUrl:
          type: string
          description: 支付地址
        description:
          type: string
          description: 交易描述
        expiryPeriod:
          type: integer
          description: 支付有效期剩余分钟数
        sign:
          type: string
          description: 签名

````