- 文档介绍
- 认证
- 账户
- 余额
- 申请收款账户
- 收款账户
- 收单
- 入账
- 汇率
- 换汇
- 付款
- 转账
- 流水
- 账户实名更新请求
- 收款人
- 模拟
- Webhooks
- 通知
收单支付成功通知
POST
/acquiring_payment_success
请求参数
Body 参数application/json
type
string
必需
data
object
必需
id
string
支付 ID
request_id
string
商户订单 ID
account_id
string
账户 ID
payment_type
enum<string>
支付方式
枚举值:
WECHAT_PAY
payment_flow
enum<string>
支付类型
枚举值:
SCANAPPMINI_PROGRAMOFFICIAL_ACCOUNT
order_description
string
订单描述
notify_url
string | null
支付通知地址
payment
object
必需
payment_params
object | null
可选
metadata
object | null
附加参数
next_action
object | null
可选
settlement
object
必需
payer
object | null
可选
status
enum<string>
支付状态
枚举值:
INITPENDINGSUCCESSFAILEDCANCELED
create_time
string <date-time>
创建时间
complete_time
string <date-time> | null
支付完成时间
示例
{
"type": "string",
"data": {
"id": "string",
"request_id": "string",
"account_id": "string",
"payment_type": "WECHAT_PAY",
"payment_flow": "SCAN",
"order_description": "string",
"notify_url": "string",
"payment": {
"amount": 0,
"currency": "string",
"expiry_time": "2019-08-24T14:15:22Z"
},
"payment_params": {
"property1": "string",
"property2": "string"
},
"metadata": {},
"next_action": {
"property1": {},
"property2": {}
},
"settlement": {
"currency": "string",
"exchange_rate": "string"
},
"payer": {
"amount": 0,
"currency": "string"
},
"status": "INIT",
"create_time": "2019-08-24T14:15:22Z",
"complete_time": "2019-08-24T14:15:22Z"
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://demo-api.easypayx.com/acquiring_payment_success' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"type": "string",
"data": {
"id": "string",
"request_id": "string",
"account_id": "string",
"payment_type": "WECHAT_PAY",
"payment_flow": "SCAN",
"order_description": "string",
"notify_url": "string",
"payment": {
"amount": 0,
"currency": "string",
"expiry_time": "2019-08-24T14:15:22Z"
},
"payment_params": {
"property1": "string",
"property2": "string"
},
"metadata": {},
"next_action": {
"property1": {},
"property2": {}
},
"settlement": {
"currency": "string",
"exchange_rate": "string"
},
"payer": {
"amount": 0,
"currency": "string"
},
"status": "INIT",
"create_time": "2019-08-24T14:15:22Z",
"complete_time": "2019-08-24T14:15:22Z"
}
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{}
修改于 2023-05-26 04:21:02