# Synchronize payment results
Please ignore this interface in the WeChat Channels scenario.
# Dxplaination of Interface Call Request
If action_type = 1, the order status changes from 10 (Pending) or 11 (Cash Register Payment Completed) to 20 (Pending) after payment is successfully called.
Otherwise, the order status will change from 10 (Pending) to 250 (Cancelled).
If the order status is not 10 (Pending Payment), an error will be reported with an error code of 100000
Transaction_id
Required in the following cases:
Action type = 1
and pay_method_type = 0 (default 0)`passed by](https://developers.weixin.qq.com/miniprogram/dev/framework/ministore/minishopopencomponent2/API/order/add_order.html) when order / add
http请求方式:POST
https://api.weixin.qq.com/shop/order/pay?access_token=xxxxxxxxx
# Example of request parameters
{
"order_id":32434234,
"out_order_id": "xxxxx",
"openid": "oTVP50O53a7jgmawAmxKukNlq3XI",
"action_type": 1,
"transaction_id": "131456479687",
"pay_time": "2020-03-25 14:04:25"
}
# Examples of back-up
{
"errcode": 0,
"errmsg":"ok"
}
# Dxplaination of request parameters
parameter | type | Is it compulsory? | Introductions |
---|---|---|---|
order_id | number(uint64) | no | Order ID |
out_order_id | string | no | Custom order ID, and order_id two options |
openid | string | yes | User's openid |
action_type | number | yes | Type, default 1: Payment successful, 2: Payment failed, 3: User cancelled, 4: Payment overtime; 5: The merchant cancels; 10: Other reasons for cancellation |
action_remark | string | no | Other specific reasons |
transaction_id | string | no | Payment order number, action_type = 1 and pay_method_type = 0 in order / add |
pay_time | string | no | Payment completion time, action_type = 1 is required, yyyy-MM-dd HH: mm: ss |
# Dxplaination of callback parameters
parameter | type | Introductions |
---|---|---|
errcode | number | Error code |
errmsg | string | Error message |