跳到主要内容

支付 WebHook

支付 WebHook 用于接收 EFundPay 的支付终态通知。商户应以幂等方式同时处理 SUCCEEDED 和 FAILED。

POST{notification_url}
This endpoint requires the webhooks.payment scope.

Headers

timestampstringrequired

UNIX 时间戳

Examples:"20240117193352"
timezonestringrequired

时区

Examples:"Asia/Shanghai"
signaturestringrequired

请求体 RSA 签名

Examples:"base64_rsa_signature_example"

Body

application/json
ll_transaction_idstringrequired

EFundPay 支付订单号

merchant_transaction_idstringrequired

external_identifier,商户支付单号

payment_dataobjectrequired

支付数据

Response

application/json

Successful Response

codestringrequired

响应码

Examples:"200"
messagestringrequired

响应消息

Examples:"SUCCESS"
curl --request POST --url {notification_url} --header 'timestamp: "20240117193352"' --header 'timezone: "Asia/Shanghai"' --header 'signature: "ovTdLBu+BN8...Bvkw=="' --header 'Content-Type: application/json' --data '{
"ll_transaction_id": "2022012601122644",
"merchant_transaction_id": "693100628120965120",
"payment_data": {
"account_date": "20220126",
"exchange_rate": "1.00000000",
"payment_amount": "1.20",
"payment_currency_code": "EUR",
"payment_status": "SUCCEEDED",
"payment_time": "20220126141430",
"settlement_amount": "1.20",
"settlement_currency_code": "EUR"
}
}'
{
"code": "200",
"message": "SUCCESS"
}
Powered by Docusaurus