Run in Apifox
Regarding the fields of firstname, lastname, email, and phone, it is necessary to provide the user's genuine information. The billingAddress also needs to be filled in; otherwise, it will affect the success rate.
Countries supported by credit card transactions# Title Description Support USD、MXN、EUR、AUD、GBP、JPY、SGD、AED、COP、CLP、INR、CAD UnSupport AFG、AGO、ATA、BLR、BVT、BFA、CAF、UKR、CUB、COD、UKR、ERI、SWZ、ATF、GNB、GUY、HTI、HMD、IRN、IRQ、UKR、LAO、LBY、UKR、CHN、MMR、ANT、PRK、PSE、RUS、SLE、SOM、SSD、SDN、SYR、TTO、UGA、VUT、VEN、YEM、UKR、ZWE
Trigger risk control and the response error code prompt is as follows:# Error Code Error Message Failure Reason 500000 Risk rejected: cardNo Excessive transactions using same card number 500000 Risk rejected: ip Excessive transactions from same IP address 500000 Risk rejected: email Excessive transactions using same email address 500000 Risk rejected: cardName Excessive transactions using same cardholder name 500000 Risk rejected: max amount Transaction amount exceeds limit for card number
Request Body Params application/json
{
"mchOrderId" : "string" ,
"amount" : "string" ,
"firstname" : "string" ,
"lastname" : "string" ,
"productinfo" : "string" ,
"email" : "string" ,
"phone" : "string" ,
"callbackUrl" : "string" ,
"redirectUrl" : "string" ,
"noPayPage" : "string" ,
"paymentType" : "CARD" ,
"currency" : "EUR" ,
"consumerId" : "string" ,
"userIp" : "string" ,
"userAgent" : "string" ,
"billingAddress" : "string" ,
"website" : "string"
} Request Code Samples
curl --location --request POST '/gateway/base/biz' \
--header 'method: pay' \
--header 'signType: SHA512' \
--header 'serviceName: api.pay' \
--header 'mchId: 1416010331032883200' \
--header 'timestamp: 1631671670' \
--header 'sign: 32554324534545432543' \
--header 'Content-Type: application/json' \
--data-raw '{
"mchOrderId": "string",
"amount": "string",
"firstname": "string",
"lastname": "string",
"productinfo": "string",
"email": "string",
"phone": "string",
"callbackUrl": "string",
"redirectUrl": "string",
"noPayPage": "string",
"paymentType": "CARD",
"currency": "EUR",
"consumerId": "string",
"userIp": "string",
"userAgent": "string",
"billingAddress": "string",
"website": "string"
}' Responses application/json Generate Code
{
"data" : [
{
"orderId" : "29" ,
"currency" : "ut in irure anim" ,
"checkoutUrl" : "https://flickering-plumber.info/"
} ,
{
"orderId" : "33" ,
"currency" : "deserunt ut" ,
"checkoutUrl" : "https://judicious-stock.net/"
}
] ,
"success" : true ,
"resultCode" : "30" ,
"errorCode" : "56" ,
"errorMsg" : "ut ullamco commodo"
} Modified at 2025-12-05 12:56:10