认证接口
# 请求地址
POST https://sandbox-acquirer-payment.pingpongx.com/authorization/prepare
1
POST https://acquirer-payment.pingpongx.com/authorization/prepare
1
// Make sure to add code blocks to your code group
# 请求参数
参数必填属性说明:必填(M),可选(O),条件必填(C)。 POST JSON
字段名称 | 类型 | 必填 | 描述 |
---|---|---|---|
accId | string(256) | M | PingPong定义的商户店铺唯一编号 |
sign | string(256) | M | 签名 |
signType | string(32) | M | 签名类型,SHA256 |
clientId | string(64) | M | PingPong 商户商户号 |
requestId | string(64) | M | 唯一请求号 |
merchantUserId | String(256) | M | 会员ID,用户在商户网站的会员ID |
payMethod | String | M | 支持的枚举:
|
authRedirectUrl | String(255) | M | 授权完成重定向地址 |
notifyUrl | String(255) | M | 商户通知地址 |
device.orderTerminal | Object | M | 设备参数:
|
# 请求示例
{
"requestId": "123",
"clientId": "2023042011040310224",
"accId": "2023042011040310224447",
"sign": "{{Sign}}",
"signType": "SHA256",
"merchantUserId": "12604896051315",
"payMethod": "AlipayHK",
"authRedirectUrl": "https://www.baidu.com",
"device": {
"orderTerminal": "01"
}
}
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
# 响应参数
参数字段 | 参数属性 | 参数说明 |
---|---|---|
code | M | 结果状态码 |
data.authUrl | M | 认证链接 |
msg | M | 接口返回结果 |
# 响应示例
{
"code": 200,
"data": {
"authUrl": "https://g.alipayplus.com/page/aplus-linker/acwallet/authorization.html?acqSiteId=Z02TE5520000000A&authState=168474757897648&netAuthId=168474757897648&authClientId=2020020315464510119&scopes=AUTH_AGREEMENTPAY&authRedirectUrl=https%3A%2F%2Fg.alipayplus.com%2Fpage%2Fac-auth-payment%2Fresult%2Fmobile%2Findex.html%3FloadMode%3D2%26callbackType%3DCommon%26terminalType%3DWAP%26referenceAgreementId%3D168474757897648%26authRequestId%3D2023052219091305000190000253630%26pspId%3D102216000000000000A%26clientId%3DT_4GGO000000000001&terminalType=WAP"
},
"msg": "Success"
}
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
上次更新: 2023/06/28, 21:36:23