付款回调 (运营商)

在运营商发送付款请求后,提供商将处理该请求。一旦提供商获得交易状态(成功或失败),提供商将调用此API以转发交易状态。

提供商将参数以键格式发送,然后运营商需要使用加密/解密进行解密,您需要使用 api_keyapi_secret 进行解密。

除了键参数,我们还发送 transaction_code 参数和 transaction_no 参数,这些参数未加密。

cURL
curl --request POST \
--url https://staging.s88pay.net/api/v1/transaction/resend-callback/SKU20210909025705 \
--header 'Content-Type: application/json' \
--data '{
"key": "<string>",
"transaction_code": "<string>",
"transaction_no": "<string>"
}'

参数

  • Name
    transaction_no
    Type
    string
    Description
    提供商记录的交易编号。
  • Name
    transaction_code
    Type
    string
    Description
    运营商在付款请求中发送的交易代码。
  • Name
    transaction_status
    Type
    integer
    Description
    付款交易的状态。
  • Name
    transaction_amount
    Type
    double
    Description
    交易金额。
  • Name
    transaction_fee
    Type
    double
    Description
    交易费用。
  • Name
    currency_code
    Type
    string
    Description
    货币代码,请参阅货币列表。
  • Name
    transaction_ref
    Type
    double
    Description
    付款请求的交易参考。

解密参数后,您将看到响应对象如下:

{
"transaction_no": "WD-987XXXXX",
"transaction_code": "WD8765XXXX",
"transaction_status": 2,
"transaction_amount": "3000.00",
"transaction_fee": "10.00",
"currency_code": "BDT",
"transaction_ref": ""
}