HTTP请求源码:
version=6.0.0&encoding=UTF-8&merCertId=123456&signMethod=RSA-SHA256&bizMethod=acp.unified.pay&merId=123456789&nonceStr=asdfasdf&signature=ft1242Q6Hrrsx2hmyIEGvSfA5777wXUXvZtQVqsrdy7TAxzgro=
&orderId=12345678&bizContent={
"scene": "01",
"authCode": "625899998745556",
"txnAmt": 1000,
"currencyCode": "156",
"backUrl": "http://merchantsvc.do",
"needReceipt": "Y",
"termId": "12345678",
"termInfo": {
"mchCreateIP": "",
"longitude": "",
"latitude": "",
"networkLicense": "",
"termDeviceType": "04",
"serialNum": "",
"encryptRandNum": "",
"secretText": "",
"appVersion": "",
"mCountryCode": ""
},
"WxExtendPayReq": {
"appid": "wx8888888888888888",
"deviceInfo": "13467007045764",
"body": "形象店-深圳腾大- QQ公仔",
"detail": {
"costPrice": 608800,
"receiptId": "wx123",
"goodsDetail": [{
"goodsId": "商品编码",
"wxpayGoodsid": "1001",
"goodsName": "",
"quantity": 1,
"price": 528800
},
{
"goodsId": "商品编码",
"wxpayGoodsId": "1002",
"goodsName": "iPhone6s 32G",
"quantity": 1,
"price": 608800
}
]
},
"goodsTag": "1234",
"receipt": "Y",
"sceneInfo": {
"storeInfo": {
"id": "SZTX001",
"name": "餐厅",
"areaCode": "440305",
"address": "大厦"
}
}
}
}}//为确保安全通信,需自行验证响应示例中的signature值是否为银联所提供。