XAF interface
- Details
- Category: XAF interface
https://{request address}/Payment_AddOrder
Request Parameters
|
Parameter name |
Required |
type |
Description |
|---|---|---|---|
|
mchid |
YES |
string |
The "Merchant Number" provided by the payment system to the cooperating merchants |
|
applydate |
YES |
string |
Payment initiation time, (yyyy-MM-dd HH:mm:ss) |
|
out_trade_no |
YES |
string |
Merchant unique order number |
|
payment_code |
YES |
string |
Payment product code, contact customer service to obtain |
|
money |
YES |
string |
Payment amount (in current currency, retain 2 decimal places, 100.00) |
|
accounttype |
YES |
string |
Account Types(ORANGE,MTN) |
|
accountnumber |
YES |
string |
Payment Account |
|
userid |
YES |
string |
Transaction user ID; if it is inconvenient to provide or cannot be obtained, please provide other alternative data, such as: player’s mobile phone number. |
|
notifyurl |
YES |
string |
Payment callback address |
|
pay_md5sign |
YES |
string |
sign |
Response Parameters
|
Parameter name |
Required |
type |
Description |
|
success |
YES |
string |
True if successful and false if failed |
|
errCode |
YES |
string |
0 |
|
errMsg |
YES |
string |
Payment status message |
Request Example
|
{ "accountnumber": "237612345678", |
Return to example
|
{ |
- Details
- Category: XAF interface
https://{request address}/Pay_AddOrder.html
Request parameters
|
parameter name |
required |
yes or no signature |
explanation |
|---|---|---|---|
|
pay_memberid |
YES |
YES |
The "Merchant Number" provided by the payment system to the cooperating merchants |
|
pay_orderid |
YES |
YES |
Merchant unique order number |
|
pay_applydate |
YES |
YES |
Payment time, yyyy-MM-dd HH:mm:ss |
|
pay_bankcode |
YES |
YES |
Channel Management->>Channel Rate Acquisition |
|
pay_notifyurl |
YES |
YES |
Server return address. (POST return data) |
|
pay_callbackurl |
YES |
YES |
Page jump return address (POST return data) |
|
pay_userid |
YES |
YES |
Transaction user ID; if it is inconvenient to provide or cannot be obtained, please provide other alternative data, such as: player’s mobile phone number. |
|
pay_amount |
YES |
YES |
The product amount in the current currency |
|
pay_md5sign |
YES |
NO |
Please see the MD5 signature field format |
|
type |
NO |
NO |
If type=json is passed, json will be returned. If other values are passed, html will be returned. |
|
account_types |
YES |
NO |
Operator, currently only supports: ORANGE , MTN |
Response parameters (will be returned only if type=json is passed)
|
parameter name |
required |
type |
explanation |
|
status |
YES |
string |
Status code 1 = success error = failure |
|
msg |
YES |
string |
Error message Success or failed |
|
pay_amount |
YES |
string |
Order amount |
|
pay_orderid |
YES |
string |
Payment order number of the payment system |
|
payUrl |
YES |
string |
Payment link, i.e. cashier |
|
return_params |
NO |
string |
Transparent transmission parameters |
Request example
|
{ "pay_amount": "1000.00", |
Return example
{
"code": "1",
"msg": "Success",
"money": "1000",
"order_sn": "20240603013042504853",
"payUrl": "https://******************"
}