统一下单-本地支付&信用卡
# 统一下单-本地支付&信用卡
信用支付 以下简称Credit Card或者CC
本地支付 以下简称Alternative Payment Methods或者APM
# 关键参数与响应结果关系图

# 请求地址
POST https://sandbox-acquirer-payment.pingpongx.com/acquirer/payment
1
POST https://acquirer-payment.pingpongx.com/acquirer/payment
1
// Make sure to add code blocks to your code group
# 请求参数
# 公共请求参数
参数必填属性说明:必填(M),可选(O),条件必填(C)。 POST JSON
暂无数据
# 场景参数
暂无数据
# 响应参数
# 公共响应参数
参数字段 | 参数属性 | 参数说明 |
---|---|---|
accId | M | PingPong 商户店铺编号 |
amount | C | 交易金额 |
clientId | M | PingPong 商户店商户号 |
code | M | 结果状态码 |
currency | C | 交易币种,ISO 4217 三位币种,具体支持币种⻅附件交易币种 |
description | M | 结果描述 |
merchantTransactionId | M | 商户网站的的交易流水号 |
notificationUrl | O | 由商户自定义本次交易结果通知的地址,一旦填写该参数,PingPongCheckout 将通过 Post 方式异步推送交易结果到该地址 |
relateTransactionId | C | 当前交易关联的 PingPong 交易流水号 |
sign | M | 签名内容,具体⻅本文签名规约一栏 |
signType | M | 签名规约,支持 MD5、SHA256,具体⻅本文签名规约 一栏 |
status | C |
|
transactionId | C | PingPong 交易流水号 |
transactionTime | M | 交易发起时间,yyyyMMddHHmmss |
# 场景参数
# 收银台模式
参数字段 | 参数类型 | 参数属性 | 参数说明 |
---|---|---|---|
token | string | C | 仅在收银台模式下返回,本次结账请求的唯一标示,用于初始化JS-SDK |
innerJsUrl | string | C | 仅在收银台模式下返回,JS-SDK的加载地址 |
paymentUrl | string | C | 仅在收银台模式下返回,PingPong 支付收银台地址 |
# 收银台模式响应示例
{
"accId": "2023030715431110210435",
"clientId": "2023030715431110210",
"code": "001000",
"description": "Successful request",
"innerJsUrl": "https://pay-cdn.pingpongx.com/production/static/sdk/ppPay.min.js?token=EU:Lv5g3zGEawEhRVgMumSp_2v6oesONGKloQVXN7E-nBxD6HDkc3RuGJDJYgoTsg3-",
"merchantTransactionId": "PMT-1680058287712",
"paymentUrl": "https://sandbox-acquirer-payment-ssr.pingpongx.com/v3/checkout?token=EU:Lv5g3zGEawEhRVgMumSp_2v6oesONGKloQVXN7E-nBxD6HDkc3RuGJDJYgoTsg3-",
"sign": "70301250C29494A09E48C971AB4C6EDA42A54D3498920FAFDF8338B6C15E0EF0",
"signType": "SHA256",
"token": "EU:Lv5g3zGEawEhRVgMumSp_2v6oesONGKloQVXN7E-nBxD6HDkc3RuGJDJYgoTsg3-"
}
1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
# 端到端模式
暂无数据
# 端到端模式响应示例
{
"accId": "2018092714313010016289",
"amount": "1.08",
"clientId": "2018092714313010016",
"code": "000000",
"currency": "USD",
"description": "Transaction succeeded",
"language": "en",
"merchantTransactionId": "PShop20220922183654SR",
"notificationUrl": "https://test-acquirerpay.pingpongx.com/qa/notify",
"paymentType": "DEBIT",
"relateTransactionId": "PS22092218365637987",
"shopperResultUrl": "https://test-acquirerpay.pingpongx.com/qa/result.html",
"sign": "88DF222AED425550C94FD1C9716068A5",
"signType": "MD5",
"status": "SUCCESS",
"token": "",
"transactionId": "PS22092218365637987",
"transactionTime": "1663843018000",
"cardInfo": {
"cardLevel": "",
"cardType": "CREDIT",
"firstName": "James",
"firstSixDigits": "520474",
"ipCountry": "",
"isoCountry": "BELGIUM",
"issuringBank": "",
"lastFourDigits": "1002",
"lastName": "LeBron",
"paymentBrand": "MASTERCARD"
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
"accId": "2022090211352610185423",
"amount": "10000",
"clientId": "2022090211352610185",
"code": "002000",
"description": "Transaction processing",
"merchantTransactionId": "1663770035658",
"paymentRedirectUrl": "https://demo2.2c2p.com/2C2PFrontEnd/storedCardPaymentV2/MPaymentProcess.aspx?token=yCFBKMlzD8ZoCV2bU8WE16TnLqBS9fEWeq5dcTPgI6aq5dgWDMR+o0w/2V0mnvq3",
"relateTransactionId": "PS22092122203697355",
"sign": "E568EDDBE59CE40293FE1697E6BBD5E5C45D9116D3CD447AD0B7EEF3339D6ED3",
"signType": "SHA256",
"transactionId": "PS22092122203697355"
}
1
2
3
4
5
6
7
8
9
10
11
12
13
2
3
4
5
6
7
8
9
10
11
12
13
// Make sure to add code blocks to your code group
# 信用卡服务端直连
详见信用卡服务端直连
# 演示DEMO
前往演示DEMO
上次更新: 2024/01/16, 17:06:54
← 端到端直连-仅信用卡 退款→