Token支付
Token绑卡支付:绑卡支付是用户将其信用卡或借记卡的信息与其账户进行关联(绑定),使得在未来的交易中,用户可以通过简单的验证步骤而不必再次输入详细的卡片信息来完成支付。这通常包括输入卡号、有效期、等信息。
请求参数
POST
名称 | 类型 | 长度 | 必填 | 签名 | 描述 |
---|---|---|---|---|---|
subProductType | String | 16 | Yes | Yes | TOKEN支付subProductType 使用TOKEN |
tokenInfo | String | / | No | Yes | token信息,subProductType 为TOKEN 或AUTO_DEBIT 时必填,格式为json 字符串。 请参阅对象 TokenInfo |
TokenInfo
名称 | 类型 | 签名 | 描述 |
---|---|---|---|
tokenId | String | Yes | 绑卡令牌 id |
Token支付请求响应示例
POST
json
{
"billingInformation": "{\"country\":\"US\",\"email\":\"test.test@qq.com\",\"firstName\":\"CL\",\"lastName\":\"BRW2\",\"phone\":\"17700492982\",\"address\":\"Apt. 870\",\"city\":\"Hayward\",\"postalCode\":\"66977\",\"identityNumber\":\"717.628.937-97\"}",
"merchantNo": "800209",
"merchantTxnId": "1726653956000",
"merchantTxnTime": "2024-09-18 18:05:56",
"merchantTxnTimeZone": "+08:00",
"orderAmount": "200",
"orderCurrency": "USD",
"productType": "CARD",
"shippingInformation": "{\"country\":\"US\",\"email\":\"test.test@qq.com\",\"firstName\":\"CL\",\"lastName\":\"BRW2\",\"phone\":\"17700492982\",\"address\":\"Apt. 870\",\"city\":\"Hayward\",\"postalCode\":\"66977\",\"identityNumber\":\"717.628.937-97\"}",
"sign": "a64db3c245e1b130a89e6e781c96d2acfa62aa54377c5f7a13535b2f186af0df",
"subProductType": "TOKEN",
"tokenInfo": "{\"tokenId\":\"0b3993ef0742f7f5ae85274a514bd00e9a5026eb23b08c7c83bc7c40b472ea5d\"}",
"txnOrderMsg": "{\"returnUrl\":\"https://www.merchant-store-website.com/\",\"appId\":\"1739545982264549376\",\"notifyUrl\":\"https://www.merchant-store-notify.com/\",\"products\":\"[{\\\"name\\\":\\\"Pro1\\\",\\\"price\\\":\\\"50.00\\\",\\\"num\\\":\\\"2\\\",\\\"currency\\\":\\\"USD\\\"},{\\\"name\\\":\\\"Pro2\\\",\\\"price\\\":\\\"100\\\",\\\"num\\\":\\\"1\\\",\\\"currency\\\":\\\"USD\\\"},{\\\"name\\\":\\\"shipping fee\\\",\\\"price\\\":\\\"10\\\",\\\"num\\\":\\\"1\\\",\\\"currency\\\":\\\"USD\\\",\\\"type\\\":\\\"shipping_fee\\\"},{\\\"name\\\":\\\"discount\\\",\\\"price\\\":\\\"-10\\\",\\\"num\\\":\\\"1\\\",\\\"currency\\\":\\\"USD\\\",\\\"type\\\":\\\"discount\\\"}]\",\"transactionIp\":\"127.0.0.1\"}",
"txnType": "SALE"
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
json
{
"respCode": "20000",
"respMsg": "Success",
"data": {
"transactionId": "1836345815757881344",
"responseTime": "2024-09-18 18:05:38",
"txnTime": "2024-09-18 18:05:34",
"txnTimeZone": "+08:00",
"orderAmount": "200.00",
"orderCurrency": "USD",
"txnAmount": null,
"txnCurrency": null,
"status": "R",
"redirectUrl": "https://sandbox-gw-dmz.onerway.com/3dsSecure/direct/RDT_3DS_P_8002091836345817657638912",
"contractId": null,
"tokenId": null,
"eci": "7",
"periodValue": null,
"codeForm": null,
"presentContext": null,
"actionType": "RedirectURL",
"sign": "22ddac42a394af35071d4cf72c8187079ca564f26fcc21dd353f69b5fc84368d"
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
json
{
"notifyType": "TXN",
"transactionId": "1836345815757881344",
"txnType": "SALE",
"merchantNo": "800209",
"merchantTxnId": "1726653956000",
"responseTime": "2024-09-18 18:09:35",
"txnTime": "2024-09-18 18:05:34",
"txnTimeZone": "+08:00",
"orderAmount": "200.00",
"orderCurrency": "USD",
"status": "S",
"eci": "5",
"reason": "{\"respCode\":\"20000\",\"respMsg\":\"Success\"}",
"sign": "93f145c3ee3fec296be0315be683f8971b3c76d1e0b6800e544e6e6bc749b10f",
"paymentMethod": "VISA"
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
此示例仅限参考 请勿拿此示例直接请求。