Comment on page

Confirm charge

支付扣款接口
post
https://{paymentApiUrl}
/V2022-03/confirmCharge
确认扣款接口

请求报文示例

confirmCharge.sh
curl --request POST \
--url https://{paymentApiUrl}/V2022-03/confirmCharge \
--header 'Content-Type: application/json' \
--header 'request-id: 58675' \
--header 'request-time: 1651888520935' \
--header 'gateway-no: 12345001' \
--header 'sign-info: 787966BF2479A1BE8E1886CD18E6919447FAF4F357E7056188D4F035661B822B' \
--data '{
"callbackUrl": "https://sandbox-pay.asiabill.com/services/v3/CallResult",
"customerId": "cus_1526760517237616640",
"customerIp": "192.168.3.27",
"customerPaymentMethodId": "pm_1526760521989763072",
"goodsDetails": [
{
"goodsCount": "1000",
"goodsPrice": "154.23",
"goodsTitle": "apple"
}
],
"isMobile": "0",
"orderAmount": "194.13",
"orderCurrency": "USD",
"orderNo": "NEW_API1916436298025",
"platform": "",
"remark": "TEST",
"returnUrl": "https://sandbox-pay.asiabill.com/services/v3/RedirectResultTest?bankCode=TestBankCode",
"shipping": {
"address": {
"city": "NEWARK VALLEY",
"country": "US",
"line1": "4348 Calico Drive",
"postalCode": "13811",
"state": "NY"
},
"firstName": "Di Mo",
"lastName": "Shi",
"phone": "509-675-8948"
},
"webSite": "www.AsiaBill.com"
}'

结果对象属性描述

property name
type
description
code
String
返回码
message
String
返回信息
data
redirectUrl
String
跳转URL(3D验证URL、本地支付跳转URL),如果此值不为空,则商户需要跳转客户到此地址
orderStatus
String
【交易状态】
待处理:pending
成功:success
失败:fail
orderInfo
String
交易状态描述信息
remark
String
备注
tradeNo
String
流水订单号
orderNo
String
商户订单号
orderAmount
String
商户订单金额
orderCurrency
String
商户订单币种
riskInfos
String
风控信息
maskCardNo
String
卡号前六后四