关于firstname,lastname,email,phone 字段,需要传用户真实的信息, billingAddress 也需要补充,不然影响成功率
支持多国币种多地区,主要包括USD、MXN、EUR、AUD、GBP、JPY、SGD、AED、COP、CLP、INR、CAD.....其他币 种
EUR不支持的国家地区:
Afghanistan, Angola, Antarctica, Belarus, Bouvet lsland, Burkina Faso, Central African Republic,Crimea. Cuba, Democratic Republic of Congo, Donetsk, Eritrea, Eswatini, French Southern lerritoriesGuinea-Bissau, Guyana, Haiti, Heard lsland and McDonald lslands, lran, lrag, Kherson of Ukraine,Laos, Libya, Luhansk, Mainland China, Myanmar, Netherlands Antilles, North Korea, PalestinianTerritory, Russia, Sierra Leone, Somalia, South Sudan, Sudan, Syria, Trinidad and Tobago, UgandaVanuatu, Venezuela, Yemen, Zaporizhzhia, Zimbabwe.| 错误码 | 错误提示 | 失败原因 |
|---|
| 500000 | Risk rejected cardNo | 相同卡号,超过最大次数 |
| 500000 | Risk rejected ip | 相同ip,超过最大次数 |
| 500000 | Risk rejected email | 相同邮箱,超过最大次数 |
| 500000 | Risk rejected cardName | 相同卡用户名称,超过最大次数 |
| 500000 | Risk rejected than max amount | 相同卡号,超过最大额度 |
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 {
"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 13:03:25