KRW 支付请求

仅用于KRW的支付请求。

发起支付请求

该API用于创建支付请求。此API需要一个 key 参数,该参数包含由 & 字符分隔的参数组合,然后使用 encrypt_decrypt 算法加密。

请求正文

  • Name
    key
    Type
    string
    required
    Description

    参数和API密钥及API密钥加密生成的键。

cURL
curl --request POST \
--url https://staging.s88pay.net/api/{merchant_code}/v3/dopayment \
--header 'Content-Type: application/json' \
--data '{
"key": "<string>"
}'
Processing request...

参数

  • Name
    merchant_code
    Type
    string
    required
    Description
    由提供商提供
  • Name
    merchant_api_key
    Type
    string
    required
    Description
    由提供商提供
  • Name
    transaction_code
    Type
    string
    required
    Description
    由操作员生成。每笔交易必须唯一
  • Name
    transaction_timestamp
    Type
    integer
    required
    Description
    由操作员生成。

    该参数描述交易请求的时间范围。有关时间戳的更多详细信息,请访问 https://www.epochconverter.com/

    请注意,我们仅处理以下时间范围内的时间戳

    min: 当前时间前1小时

    max: 当前时间后5分钟

  • Name
    transaction_amount
    Type
    double
    required
    Description
    交易金额
  • Name
    payment_code
    Type
    string
    required
    Description
    例如 P001。请联系管理员获取您的支付代码
  • Name
    user_id
    Type
    string
    required
    Description
    可以由您系统上的用户密钥字段填写。例如:USR98323923
  • Name
    currency_code
    Type
    string
    required
    Description
    请参阅货币列表
  • Name
    bank_code
    Type
    double
    required
    Description
    仅在BDTVNDTHBIDRMYRPHP 在线银行支付中需要。
  • Name
    deposit_name
    Type
    string
    required
    Description
    存款名称(KRW必填)

参数对象
{
"merchant_code": "",
"merchant_api_key": "",
"transaction_code": "",
"transaction_timestamp": 0,
"transaction_amount": 0,
"payment_code": "",
"user_id": "",
"currency_code": "",
"bank_code": "",
"deposit_name": ""
}

这些参数必须在通过发送之前加密


返回

返回交易状态对象。如果发生错误,此调用将返回一个错误

响应
{
"status": "success",
"step": 1,
"message": "提交交易成功!请提交存款人姓名、银行代码和账号。",
"transaction_code": "TEST-DP-1697797081",
"amount": 10000,
"bank_lists": [
"<任何>"
]
}