PHP interface
- Details
- Category: PHP interface
https://{request address}/Payment_AddOrder
Request parameters
parameter name |
required |
type |
explanation |
mchid |
YES |
string |
The "merchant number" provided by the payment system to the cooperative merchant |
applydate |
YES |
string |
Initiate payment time,(yyyy-MM-dd HH:mm:ss) |
out_trade_no |
YES |
string |
Merchant’s unique order number |
payment_code |
YES |
string |
To pay for the product code, contact customer service to obtain it. |
money |
YES |
string |
Payment amount (unit: YES, current currency, 2 decimal places, 100.00) |
bankname |
YES |
string |
Bank code (GCASH) |
accountnumber |
YES |
string |
Bank card number or account number corresponding to the payment account |
userid |
YES |
string |
Transaction user ID; if it is inconvenient or unobtainable, please provide other alternative data, such as the player's mobile phone number. |
notifyurl |
YES |
string |
Payment callback address |
name |
YES |
string |
name |
mobile |
YES |
string |
mobile |
|
YES |
string |
|
pay_md5sign |
YES |
string |
signature |
response parameters
parameter name |
required |
type |
explanation |
success |
YES |
string |
True for success, false for failure |
errCode |
YES |
string |
0 |
errMsg |
YES |
string |
Payment status message |
Request example
{ |
Return example
{ "success": true, "errCode": "0", "errMsg": "Success" } |
- Details
- Category: PHP interface
https://{url}/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 cooperative merchant |
pay_orderid |
YES |
YES |
Merchant’s 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 or unavailable to provide, please provide other alternative data, such as: player mobile phone number。 |
pay_amount |
YES |
YES |
Product amount in current currency |
user_name |
YES |
NO |
Player’s name (no need to fill in unless otherwise specified) |
user_mobile |
YES |
NO |
Player's mobile phone number(no need to fill in unless otherwise specified) |
user_email |
NO |
NO |
Player's email(no need to fill in unless otherwise specified) |
pay_md5sign |
YES |
NO |
Please see 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. |
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 faild |
pay_amount |
YES |
string |
order amount |
pay_orderid |
YES |
string |
Payment order number of the payment system |
payUrl |
YES |
string |
Payment link |
return_params |
NO |
string |
Transparent transmission parameters |
Request Example
{ |
Response Example
{ |