Checkout
- Checkout API redirects users to a predefined payment page. This simplifies the process for clients as they do not need to manage the payment flow themselves; everything is handled by the PSP.
Tip
- All requests are
Post requests, and the data format is json
API Documentation for Payment Link Interface
Brief Description
Cashier payment interface.
Request URL
Request Method
- Method: POST
- Content-Type: application/json
Collection Method Codes
| wayCode |
Description |
| store |
Convenience store |
| va |
Va repayment (CLABE) |
| Header |
Required |
Type |
Description |
| merchantNo |
Yes |
String |
- |
Body
| Parameter Name |
Required |
Type |
Description |
| sign |
Yes |
String |
Except for sign, the remaining fields are sorted by the first letter to form key1=value1key2=value2, then use app secret as salt for MD5 encryption. The sign should be in lowercase letters. |
| timestamp |
Yes |
long |
Timestamp (e.g., 1715941383720) |
| tradeNo |
Yes |
String |
Transaction number (should be unique, suggested format: YYYYMMDDHHMMSS + random number) |
| amount |
Yes |
String |
Amount (no decimal support) |
| mobile |
No |
String |
User's mobile phone number |
| email |
No |
String |
Email address |
| payer |
No |
String |
Payer's name |
| wayCode |
No |
String |
Collection method code |
| notifyUrl |
Yes |
String |
Asynchronous callback URL |
| returnUrl |
No |
String |
Cashier page redirect URL, remove escape characters “\”, reference format: https://www.abc.com/. If not provided, it will redirect to the system's default success page. |
| remark |
No |
String |
Remark, this field will be returned as is. |
Request Parameter Example
{
"sign": "0be92a962072b1786a01a2cab4891a1d",
"timestamp": "1728609257212",
"tradeNo": "test_00000008",
"amount": "300",
"mobile": "15745896325",
"email": "kevin_zhang@163.com",
"payer": "kevin zhang",
"wayCode": "va",
"notifyUrl": "https://google.com",
"returnUrl": "http://abc.com/callback_page",
"remark": "test"
}
Response Result
| Parameter Name |
Required |
Type |
Description |
| msg |
Yes |
String |
Request result (Returning "success" only indicates the request was successful; it should not be used for merchant-side logic) |
| code |
Yes |
String |
Request response code (Returning "0000" only indicates the request was successful; it should not be used for merchant-side logic) |
| timestamp |
Yes |
String |
Transaction time |
| success |
Yes |
String |
Transaction result |
| data |
Yes |
Object |
Response object |
| data.tradeNo |
Yes |
String |
Merchant transaction number |
| data.platFormTradeNo |
Yes |
String |
vexora transaction number, unique |
| data.status |
Yes |
String |
Transaction results,Merchants can process subsequent workflows based on the returned status in the transaction result. For details, please refer to the status code reference table. |
| data.desc |
Yes |
String |
Error description |
| data.remark |
Yes |
String |
Returned content of the request (returned as is) |
| data.paymentUrl |
Yes |
String |
Payment link, i.e., the cashier URL |
Successful Response Example
{
"msg": "success",
"code": "0000",
"timestamp": 1728609277476,
"success": true,
"data": {
"tradeNo": "test_00000008",
"platFormTradeNo": "68o0uwogz7mnzutt",
"status": "0015",
"desc": "Create",
"remark": "test",
"paymentUrl": "https://checkout.tpservice.vip/#/order/bd/P1844547116046675970"
}
}