Googlepay API 支付
全球收单-SandBox环境
全球收单-SandBox环境
POST
/googlepay/api
1.payerInfo中的的paymentMethod需指定为”googlepay“
1.按照ASCII码顺序对请求的 payload 进行排序
2.按第一步获取的结果,进行key-value 遍历, 对 value trim 后不为空的 key-value 使用 URL 键值对的格式进行拼接(key1=value1&key2=value2...),
3.第2步取到字符串, 拼接上 &pkey=商户的MD5/RSA密钥, 然后对该字符串进行MD5/RSA, 得到的值即为签名值
1.根据resultCode判断交易状态。
2.redirectParam中包含的ApplePayPaymentAuthorizationResult字符串,为ApplePaySDK需要的参数,请解析之后使用
请求参数
Header 参数
Content-Type
string
必需
示例值:
application/x-www-form-urlencoded
Body 参数application/x-www-form-urlencoded
version
string
必需
示例值:
1.0
merchantNo
string
商户号
示例值:
500000000007362
transactionId
string
订单号
示例值:
202212070142347
transactionType
string
传 pay
示例值:
pay
transactionExpirationTime
integer
必需
示例值:
30
appId
string
必需
示例值:
www.pay.com
amount
string
必需
示例值:
1234
currency
string
必需
示例值:
USD
orderInfo
string
必需
示例值:
{ "subject": "订单标题", "goodsInfo": [ { "id": "商品编号", "name": "商品名称", "body": "商品描述", "category": "商品类目", "categoryTree": "商品类目树,不同级别类目使用”|”分割", "brand": "商品品牌", "quantity": 1, "price": 1234, "url": "商品url", "sku": "商品sku", "image": "商品图片url" } ], "deliveryMethod": "logistics", "deliveryTime": "", "shippingAddress": { "email": "victor.yang@useepay.com", "phoneNo": "+44 20 7734 9638", "firstName": "Victor", "lastName": "Yang", "street": "Heathcoat House, 20 Savile Row", "postalCode": "W1S 3PR", "city": "London", "state": "LND", "country": "GB" }}
payerInfo
string
必需
示例值:
{ "paymentMethod": "googlepay", "authorizationMethod": "cvv", "billingDescriptor": "", "billingAddress": { "houseNo": "El Gallo Giro(https://gallogiro.com/)", "email": "victor.yang@useepay.com", "phoneNo": "(323) 585-4433", "firstName": "Victor", "lastName": "Yang", "street": "7148 Pacific Blvd, Huntington Park, CA 90255", "postalCode": "90225", "city": "Huntington Park", "state": "CA", "country": "US" }}
userInfo
string
必需
示例值:
{ "userId": "victor007", "ip": "103.25.65.178", "email": "victor.yang@useepay.com", "phoneNo": "(323) 585-4433", "createTime": "20200520131400"}
notifyUrl
string
必需
示例值:
webhook地址
redirectUrl
string
必需
示例值:
USEEPAY 回跳商户地址
echoParam
string
可选
示例值:
echoParam
signType
string
必需
示例值:
MD5
sign
string
必需
示例值:
decb3b9b728c7af4251acae23804939b
referer
string
当 前页面的 URL
示例值:
https://pinkx.com/
googlePayToken
string
必需
示例代码
返回响应
修改于 2024-11-29 08:35:46