对接杭州银行支付的总结(一)
2021-06-21 本文已影响0人
天草二十六_简村人
本文主要整理杭州银行的接口示例报文。
- 支付下单接口
- 支付回调通知
- 退款接口
- 查询支付结果接口
- 关单接口
- 对账接口
一.支付下单接口
1. JSAPI支付方式
- 发送报文
{
"merName":"xxx",
"txnType":"1006",
"txnAccType":"02",
"backEndUrl":"[http://101.68.64.83:6008/pay/api/v1/notify/hzbank](http://101.68.64.83:6008/pay/api/v1/notify/hzbank)",
"txnOrderBody":"string",
"txnOrderId":"0621061715B1625024018",
"txnSubOpenid":"ouAkj1Eb-Yyi-054qhIG0MdJUQV8",
"secMerAppId":"wxd9a9691ecfa23abc",
"signAture":"MIIGRAYJKoZIhvcNAQcCoIIGNTCCBjECAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHAaCCBHkwggR1MIIDXaADAgECAhAQAAAAAAAAAAAAABBAA1lWMA0GCSqGSIb3DQEBBQUAMFgxCzAJBgNVBAYTAkNOMTAwLgYDVQQKEydDaGluYSBGaW5hbmNpYWwgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkxFzAVBgNVBAMTDkNGQ0EgVEVTVCBPQ0ExMB4XDTIwMDkyNTA4MjY1M1oXDTIyMDkyNTA4MjY1M1owfTELMAkGA1UEBhMCQ04xFTATBgNVBAoTDENGQ0EgVEVTVCBDQTERMA8GA1UECxMITG9jYWwgUkExGTAXBgNVBAsTEE9yZ2FuaXphdGlvbmFsLTExKTAnBgNVBAMUIDA1MUB4dWVoYWlAWls4MjAyMDA5MjU1MzcxMTE4XUAxMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA31Djm17gGck8hQ8FSs71+8OPOoOVAeJKcUYSjNwSypU+z5a86F/K7J0h2Aa7C+UQ7f+KQjAX2SJ0ysg/Oh+BgTau7RKKX3BRREz+XPqHm5LCJd9pUjm9vAGp7d8Kg/vt1A1sPRxsXenhgs2nAxp4i83DTeYMGU6lDsWV8I+QBAb1X7fcqa1xVN2DD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YFKw4DAhoFADANBgkqhkiG9w0BAQEFAASCAQB8vqZ0iAsgZjXl96ej9YwOa3hvITo6k/4MmtnKmSxIlitVnt+1FIlxIvIPWKguX44yRFgIyAkTfxpHfTKnO4uQOBfOfB1ieN2zd8Lc9Iluwf3Y1wzboMsaqDSksrpq7Ud1eEOkfIiqNpQTbNlW3t8J2DHN+1XFoPDuD1r2+dXuOVWMMyyt1XPktQw+0b2wo3k5cN606nF8lwqyD9jYWC4V+zr874J6J2PRUg1PeFZTNiua5nuKh2gRzfCUi3tjeQ4ETEJOZFbwZn510VxJyVEEzea9xLrH6RSCIIM2EWI097g7dLSwZzKCGmQ4zxYKXxHGO1Q3TkzIGsQnR2i3Gjy5",
"txnSubType":"100606",
"aesWay":"04",
"certId":"17010100001",
"encoding":"UTF-8",
"txnOrderTime":"20210617151625",
"sdkAppId":"201701",
"txnCcyType":"156",
"merId":"8202009255371118",
"signMethod":"01",
"txnAmt":"2300"
}
- 响应报文
{
"signAture":"MIIGPAYJKoZIhvcNAQcCoIIGLTCCBikCAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHAaCCBHEwggRtMIIDVaADAgECAhAQAAAAAAAAAAAAABBAUCAUMA0GCSqGSIb3DQEBBQUAMFgxCzAJBgNVBAYTAkNOMTAwLgYDVQQKEydDaGluYSBGaW5hbmNpYWwgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkxFzAVBgNVBAMTDkNGQ0EgVEVTVCBPQ0ExMB4XDTIwMTAxOTE1NTExMloXDTI1MTAxOTE1NTExMlowdTELMAkGA1UEBhMCQ04xFTATBgNVBAoTDENGQ0EgVEVTVCBDQTERMA8GA1UECxMITG9jYWwgUkExGTAXBgNVBAsTEE9yZ2FuaXphdGlvbmFsLTExITAfBgNVBAMUGDA1MUBoenhmQFpbSDEwMDAwMTg2MV1AMTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAK9be0wUgFMo7KkiGOsiwJ6EZebCisjM5yI5ZbgtT7O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BsMFgxCzAJBgNVBAYTAkNOMTAwLgYDVQQKEydDaGluYSBGaW5hbmNpYWwgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkxFzAVBgNVBAMTDkNGQ0EgVEVTVCBPQ0ExAhAQAAAAAAAAAAAAABBAUCAUMAkGBSsOAwIaBQAwDQYJKoZIhvcNAQEBBQAEggEAGZEOiFQRUUQYDynF4f4DWz8mAUcmgHfReQLjbEBqqj/ZrDw4fCRZvf7L2D4htmj0ZGM9S0FeaowZviPkSSORfmZUrWxSQYh69Vv0KZnsPQUrvDC4l5dcAVwfwe9PnZ3kfb1AUGkxFrESzzBkU5nu62FH+W2ge50ZNgVarFWqagPbVEwHxbOX2CleNHcpQI2O41zLzMxgNgA0B3TejrbeFAaX/iaQu+pMsmolt7LJ4HwZ0lfGx84t1CyZNJcKphbW318xQmLyOL5MTYvw0IL2kMN9FRLiY1zCkKvdW3jBhVG9pc8ikZyh8bdETspv6aV8M+kmvMIn1THRA3h0Tffr2Q==",
"respData":"{\\"timeStamp\\":\\"1623914187\\",\\"package\\":\\"prepay_id=wx17151627216319fab9ee452c2ed6b60000\\",\\"paySign\\":\\"zZQ86qNqyI8atISCzFRT8Xo6TJVIMo+hZVtbsET8EKXMDeIfk5zd8fsE2yU/XLnpl6i0wc4aRFKKpDA0YQzIE8UDRZfz4pjWCKTMB+6ANs5toQ08XE55nBH2XStj+MZRS01/+zbnEQ//xn/J8fIG4aubX28elTZQa91YEBKoys1ft2VMdY/ipuWvO8SePsn/v366gde7v754qEVNR6M6VWD0vi+z9HmCmyzj7JC87m15plXD5k988Dr53MmMz1vpYEPCbDPzWrN32W9XkGg8zApxzDM2WojREk+0fVr7y1xMulAZpzXVwKoTBpMhx6LJ3SPxq2VTSd6L1fqTDDl9yQ==\\",\\"appId\\":\\"wxd9a9691ecfa23abc\\",\\"signType\\":\\"RSA\\",\\"pagy_channel_txn_ssn\\":\\"30240912241486620429597079848862\\",\\"nonceStr\\":\\"284e40ca6f084b7c982571f352310ab5\\"}",
"respMsg":"交易受理成功,请尽快发起交易支付",
"txnOrderId":"0621061715B1625024018",
"respCode":"0000",
"respTxnSsn":"82021061715150410880570401708895",
"respTxnTime":"20210617151504"
}
2. QR扫码支付
- 发送报文
{
"merName":"xxx",
"txnType":"1000",
"backEndUrl":"[http://101.68.64.83:6008/pay/api/v1/notify/hzbank](http://101.68.64.83:6008/pay/api/v1/notify/hzbank)",
"txnOrderBody":"string",
"txnUserId":"101",
"txnOrderId":"062106B17153214024021",
"signAture":"MIIGRAYJKoZIhvcNAQcCoIIGNTCCBjECAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHAaCCBHkwggR1MIIDXaADAgECAhAQAAAAAAAAAAAAABBAA1lWMA0GCSqGSIb3DQEBBQUAMFgxCzAJBgNVBAYTAkNOMTAwLgYDVQQKEydDaGluYSBGaW5hbmNpYWwgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkxFzAVBgNVBAMTDkNGQ0EgVEVTVCBPQ0ExMB4XDTIwMDkyNTA4MjY1M1oXDTIyMDkyNTA4MjY1M1owfTELMAkGA1UEBhMCQ04xFTATBgNVBAoTDENGQ0EgVEVTVCBDQTERMA8GA1UECxMITG9jYWwgUkExGTAXBgNVBAsTEE9yZ2FuaXphdGlvbmFsLTExKTAnBgNVBAMUIDA1MUB4dWVoYWlAWls4MjAyMDA5MjU1MzcxMTE4XUAxMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA31Djm17gGck8hQ8FSs71+8OPOoOVAeJKcUYSjNwSypU+z5a86F/K7J0h2Aa7C+UQ7f+KQjAX2SJ0ysg/Oh+BgTau7RKKX3BRREz+XPqHm5LCJd9pUjm9vAGp7d8Kg/vt1A1sPRxsXenhgs2nAxp4i83DTeYMGU6lDsWV8I+QBAb1X7fcqa1xVN2DDVCnmisd6eyK63JAsp2Rkfnlnyx9iynDatqZw1HL9F+PwzqMYTUMVYBxIW5H9xlg8AntUj+OSjoS4a+JsbhM7RRq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f13y72cXDSPcLu9EocGLg+pzo9OQyIyJrHq7QZGC3Hy+vdGDRs7zf/f2bnA1I3UCI9dtJSQ8u5d9j+4tuLAZjZ6wra65bb58YIHxOSZcx57sfS8igg1Ik6NvfqnWVggz1jXugEG2fJN76R2v/JlCOz/JR221oYfL6Fr0BZQXsT5pVII0lXqCzm3MUk3oiiHa787lAlmVNPjZ9C7mGDR6aU2KSCHDU4t9wu4S2qqcc1okxtfYNdYpxQJpgwZ6xx/Ubjb9J615aFXtkJ16ag9jFr2yH9L6npb5Iyr",
"txnSubType":"100008",
"aesWay":"04",
"certId":"17010100001",
"encoding":"UTF-8",
"txnOrderTime":"20210617153214",
"sdkAppId":"201701",
"txnCcyType":"156",
"merId":"8202009255371118",
"signMethod":"01",
"txnAmt":"2300"
}
- 响应报文
{
"signAture":"MIIGPAYJKoZIhvcNAQcCoIIGLTCCBikCAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHAaCCBHEwggRtMIIDVaADAgECAhAQAAAAAAAAAAAAABBAUCAUMA0GCSqGSIb3DQEBBQUAMFgxCzAJBgNVBAYTAkNOMTAwLgYDVQQKEydDaGluYSBGaW5hbmNpYWwgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkxFzAVBgNVBAMTDkNGQ0EgVEVTVCBPQ0ExMB4XDTIwMTAxOTE1NTExMloXDTI1MTAxOTE1NTExMlowdTELMAkGA1UEBhMCQ04xFTATBgNVBAoTDENGQ0EgVEVTVCBDQTERMA8GA1UECxMITG9jYWwgUkExGTAXBgNVBAsTEE9yZ2FuaXphdGlvbmFsLTExITAfBgNVBAMUGDA1MUBoenhmQFpbSDEwMDAwMTg2MV1AMTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAK9be0wUgFMo7KkiGOsiwJ6EZebCisjM5yI5ZbgtT7OlrHa1hs6do2zWRz4IvjApbe//KvOUvLwpGJX5Njf4IYHlmRIoY4n2I/afqXym+pyPMcbzZdtbvzSxIDv9ADbWTL8kT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kxFzAVBgNVBAMTDkNGQ0EgVEVTVCBPQ0ExAhAQAAAAAAAAAAAAABBAUCAUMAkGBSsOAwIaBQAwDQYJKoZIhvcNAQEBBQAEggEAAdlYy5b97hwK6dOgIaowghfNMeBEckXeesq3u9HzbtnVb5B7uoEzYq3v5jDaPK1bpGcoFx+rqhf61gvZzrGPeUO4kB/VRzNkD2BoL6yMMsVsSfjR2S4xFSplZL792E+N9lMn/n6/gd993fKUaxrunx2wO5oRET/llQywTG9NMam0OUUfjTukntMaQwdY2GElde0REFUbeeAgjbgW4JbEOn4txQD3v6PLp6/qum7XuGDOhcTs9CL2j+CUGYbBEw/sDmbQysYEuEX74UR4l3AYo2Msu3LyLM971em+YaeWd2tbKaPQ+RVtcqRtvkUv+LW+h8EeyfVmRFKeS2kuKNOVwQ==",
"respMsg":"交易成功",
"txnTokenPayData":"{\\"tokenEnd\\":\\"20210617160053\\",\\"tokenType\\":\\"01\\",\\"tokenBegin\\":\\"20210617153053\\",\\"tokenCodeURL\\":\\"http://test.hccb.cc/ifsp-payweb/qrcPayReceive/5031408628002449933532251973639513\\"}",
"txnOrderId":"062106B17153214024021",
"respCode":"0000",
"respTxnSsn":"82021061715305358211782744506852",
"respTxnTime":"20210617153053"
}
3.签名规则
注意:value不能包括为空或者null的key。
二. 支付回调通知
回调报文是明文加签名的机制,所以业务方必须校验签名的合法性。
- java接收回调报文的示例:
String requestResultJson = IOUtils.toString(request.getInputStream(), request.getCharacterEncoding());
if (log.isInfoEnabled()) {
log.info("杭州银行支付回调通知, 回调报文内容是:{}", requestResultJson);
}
if (StringUtils.isEmpty(requestResultJson)) {
return ERROR_CODE;
}
Map<String, Object> resultMap = JSON.parseObject(requestResultJson, HashMap.class);
if (HzBankSignUtil.SUCC_CODE.equalsIgnoreCase((String) resultMap.get(HzBankSignUtil.RESP_CODE))) {
//处理回调报文
}
- 支付回调报文
{
"signAture":"MIIFfwYJKoZIhvcNAQcCoIIFcDCCBWwCAQExCzAJBgUrDgMCGgUA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/icBN83usFYH/Om4/D19/tn1lFzibQAvSYjWWDZ3butObHvXWSWN7bQUjJJr3X2ey0SBbI2owEAPw3okK7w68f+xZlmHP4Z/Ctqqf7z/jeQ7yatTYq5TxDimrqr7MzQAVVRYflRXurYuOXpiXAfdgDCFNGKg//Y8FT6iMP3qbNFZDnI6pdKAMFMq/iZlfWa2s0R/GhtjmEzdOs80f6k7uvCQ4uEY38fnxAf0EeCtSHBqQv3c1of9UpuqdXEWT6J7zZd6ApiTxWmGhbsXfQPrLg308Ffcp7Q/rZhD+DMYIBXDCCAVgCAQEwNTAhMQswCQYDVQQGEwJDTjESMBAGA1UEChMJQ0ZDQSBPQ0ExAhAQAAAAAAAAAAAAABCHBXNYMAkGBSsOAwIaBQAwDQYJKoZIhvcNAQEBBQAEggEAIMBhAfqvFzDBqIKPsd5Ea2veQRXVDqFSgF9vXsyDg8Rx0GbF1m9Dyw+Pd6Uh3ijvbowhxkmVoAEf4aLmd5IJwjCkuoEWtgEJwUaYcuH2I3tnY8j/DU4V55tvfuN8+zbyOlhHgPcxJ9yF2S71aGaqf9WPO6gmBs1lZMfKDidBadDTw8FPgxM4Zzu4NMVMaTCWpwIzNmjA9aYtfpRGQLxasCEO1FmDTQWNLA663sxbSgY+nF8n3UBcFTNg69ajvN+hXmp9FVUvIR853BY5X7r3ZTXM8GTClYJ1uSk2al9sKnzp0+G0LMOu2KZ1bEx5+v7CAYXZoU7txDNUMod4bBDKUQ\u003d\u003d",
"settleAmt":"210000",
"settleDate":"20210622",
"wxOrderId":"30275924288799227073644937870659",
"txnOrderTime":"20210622101753",
"respTxnSsn":"82021062210175225187181385118988",
"respMsg":"交易成功",
"settleCcyType":"156",
"tpamTxnSsn":"4200001004202106226797322571",
"txnOrderId":"092106221017530050B68",
"respCode":"0000",
"respTxnTime":"20210622101752"
}
三. 退款接口
杭州银行的退款是同步接口,申请退款立即返回成功或失败。
- 发送报文
{
"signAture":"MIIGRAYJKoZIhvcNAQcCoIIGNTCCBjECAQExC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410861146084",
"txnSubType":"100800",
"origRespTxnTime":"20210622085815",
"merName":"xxx",
"aesWay":"03",
"txnType":"1008",
"certId":"17010100001",
"encoding":"UTF-8",
"txnOrderTime":"20210622101846",
"backEndUrl":"[http://101.68.64.83:6008/pay/api/v1/notify/hzbank](http://101.68.64.83:6008/pay/api/v1/notify/hzbank)",
"sdkAppId":"201701",
"txnCcyType":"156",
"origTxnOrderId":"062106220857B56026550",
"merId":"8202009255371118",
"txnOrderId":"R0621062210184602701B2",
"signMethod":"01",
"txnAmt":"1"
}
- 响应报文
{
"signAture":"MIIGPAYJKoZIhvcNAQcCoIIGLTCCBikCAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHAaCCBHEwggRtMIIDVaADAgECAhAQAAAAAAAAAAAAABBAUCAUMA0GCSqGSIb3DQEBBQUAMFgxCzAJBgNVBAYTAkNOMTAwLgYDVQQKEydDaGluYSBGaW5hbmNpYWwgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkxFzAVBgNVBAMTDkNGQ0EgVEVTVCBPQ0ExMB4XDTIwMTAxOTE1NTExMloXDTI1MTAxOTE1NTExMlowdTELMAkGA1UEBhMCQ04xFTATBgNVBAoTDENGQ0EgVEVTVCBDQTERMA8GA1UECxMITG9jYWwgUkExGTAXBgNVBAsTEE9yZ2FuaXphdGlvbmFsLTExITAfBgNVBAMUGDA1MUBoenhmQFpbSDEwMDAwMTg2MV1AMTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAK9be0wUgFMo7KkiGOsiwJ6EZebCisjM5yI5ZbgtT7OlrHa1hs6do2zWRz4IvjApbe//KvOUvLwpGJX5Njf4IYHlmRIoY4n2I/afqXym+pyPMcbzZdtbvzSxIDv9ADbWTL8kTKdojzROPOqHmoQTS0mJeOUAxB3JiUjil2AvyWSXe4VVlE6RiSVYOJ8wjLzy3Z6gebngv0YuhyQfRqcXbyVRGbaHGo4JvWglp+nqXkfgRYOw3z1YGjWdfJ/MUsvB5qV5nV+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N8FOchbbtu6jEGcrCFF8YpLvYq6p3XBoyajaB30uLxXO5FL5rTX6nqXnxczqdjfDYC44LQ89u6WqzcJ108Nq/PNLBojLhIkNvhUSIHeul0gPxrpKJ6fgh/ARmTbouHpVg061nhSTM/s9uzkTvjpYgdSSC96Er91g/W4+G9wDJV3TIjZQLpbWQQ8SyaZ2SFumUR92RsKAERwk/b1s+cpnj/NNvmkhBmyeZIXp0NFe8Ti28h78nM7v5BvgLQef7AmcR3YMxavQiko/1lNH1cOKh5tlYnBJQ8bSakeWnmmfR4Xhie0+GUvYoWvQ==",
"origRespTxnSsn":"82021062208581549874410861146084",
"origRespTxnTime":"20210622085815",
"settleAmt":"1",
"settleDate":"20210622",
"txnOrderTime":"20210622101846",
"respTxnSsn":"82021062210171956620811204586555",
"origTxnOrderId":"062106220857B56026550",
"origTxnOrderTime":"20210622085756",
"respMsg":"交易成功",
"settleCcyType":"156",
"txnOrderId":"R0621062210184602701B2",
"respCode":"0000",
"respTxnTime":"20210622101719"
}
四. 查询支付结果接口
主动查询和支付回调的返回内容类似,必须包括第三方支付流水号、平台支付流水号、支付时间、支付金额等。
- 发送报文
{
"signAture":"MIIGRAYJKoZIhvcNAQcCoIIGNTCCBjECAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHAaCCBHkwggR1MIIDXaADAgECAhAQAAAAAAAAAAAAABBAA1lWMA0GCSqGSIb3DQEBBQUAMFgxCzAJBgNVBAYTAkNOMTAwLgYDVQQKEydDaGluYSBGaW5hbmNpYWwgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkxFzAVBgNVBAMTDkNGQ0EgVEVTVCBPQ0ExMB4XDTIwMDkyNTA4MjY1M1oXDTIyMDkyNTA4MjY1M1owfTELMAkGA1UEBhMCQ04xFTATBgNVBAoTDENGQ0EgVEVTVCBDQTERMA8GA1UECxMITG9jYWwgUkExGTAXBgNVBAsTEE9yZ2FuaXphdGlvbmFsLTExKTAnBgNVBAMUIDA1MUB4dWVoYWlAWls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QgrpAe1PiporCiZVuzT+SW7Yz+q117Al3Je6UrHfZEkn6tSFGe1STKbyjLv3/RblyZ1l5FRCny7lGjZuI7MgBDC4VpsbzGCAZMwggGPAgEBMGwwWDELMAkGA1UEBhMCQ04xMDAuBgNVBAoTJ0NoaW5hIEZpbmFuY2lhbCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTEXMBUGA1UEAxMOQ0ZDQSBURVNUIE9DQTECEBAAAAAAAAAAAAAAEEADWVYwCQYFKw4DAhoFADANBgkqhkiG9w0BAQEFAASCAQBSzyJlZt0urbPb0o9Tot3sNPay3hOV+bDcA7VfmDSek1VZaiPRcBV/aS1P2N4Tbs67bZBq1rI8FqanO+4VFKKsmMYdjOx8L0BO/DUgBfpDE2onR2zc4QhnFme1zv8ycqZA5qd5Q3scHN+XkWhdnTmhjB3iKQLLhqwqrGJT/xvAjkHr0zxK+c2d9uuxAm3x9H+xeP6Q5dwL8TBk0Y4vF9rx3eX6rjMf5cc8t6EQBS7xa3TikEYm/WFf/Z2yBBpzgoIJac1pCzEPbhrU/tIYh0NRe0dWcLEkQeJd6jBBH+tWWjOmI2qnWpzibGgSFQVp7H/EfodYELaxlynYxfp1fYtn",
"txnSubType":"100900",
"txnType":"1009",
"certId":"17010100001",
"encoding":"UTF-8",
"txnOrderTime":"20210622091536",
"sdkAppId":"201701",
"origTxnOrderId":"062106220857B56026550",
"merId":"8202009255371118",
"txnOrderId":"Q06210622091B536027000"
}
-响应报文
{
"signAture":"MIIGPAYJKoZIhvcNAQcCoIIGLTCCBikCAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHAaCCBHEwggRtMIIDVaADAgECAhAQAAAAAAAAAAAAABBAUCAUMA0GCSqGSIb3DQEBBQUAMFgxCzAJBgNVBAYTAkNOMTAwLgYDVQQKEydDaGluYSBGaW5hbmNpYWwgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkxFzAVBgNVBAMTDkNGQ0EgVEVTVCBPQ0ExMB4XDTIwMT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GhYqxIapiCjUiMpm5ZfBBylTDaLVy3IHuI8GnZNc4ykFnp2DCVZoJH9YSGgnQxxdLvNuYLDebdGROOvQ2+dbEqgpSJU3N8mnNGsxfUnxzIIkH5xbT8bBn8STTunID26wwDhCv0MN8nfD1TKlkJjSCJUr1MglovZ+ac4ETdC7bm4S3q9+eEjXEZzm4BO9wxEG6XdK3K1qUzbntceOMZ58wOr4/QA5dIrYxQFTGTO8dbkGKttHpXY+fKp8y+Kv4ExggGTMIIBjwIBATBsMFgxCzAJBgNVBAYTAkNOMTAwLgYDVQQKEydDaGluYSBGaW5hbmNpYWwgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkxFzAVBgNVBAMTDkNGQ0EgVEVTVCBPQ0ExAhAQAAAAAAAAAAAAABBAUCAUMAkGBSsOAwIaBQAwDQYJKoZIhvcNAQEBBQAEggEARPrAhXIusjI+aCwiXttXhf386D+noi/oeZfKDFq9leTFY9wGl7K5dljIsphtlmHd1VhztGRzJl2O00tf4S378Xche81GPlgkOgtKgZthPhWvMmqZ0F9lm/9yCOJcJx2T22jiN29nP/S+g8LxYj3Zc38QXrf4/EwEr05y4Q3N7XomEhvWu26iNiIOJKjqbtCOEM16ia3vkEjNWcd5DHbmytu82aIzogkDeUGEARGZ29q5uKfjG0msEzcOuA7N3mgeW+MtkdyIMIIV5XmFeP9Q/zSvmzKULLBZwGAW0KRfiPobP5qLWhw6W20+tzOXBX/WbQBClTyIVUK7r7YLX5ZTJQ==",
"origRespTxnSsn":"82021062208581549874410861146084",
"origRespTxnTime":"20210622085815",
"orderStat":"00",
"txnType":"1006",
"origSettleAmt":"1",
"txnOrderTime":"20210622091536",
"origSettleCcyType":"156",
"origSettleDate":"20210622",
"origTxnOrderId":"062106220857B56026550",
"origRespMsg":"交易成功",
"origTxnOrderTime":"20210622085756",
"respData":"{\\"open_id\\":\\"o72qIjjL8JtBayIDan6RqDqS43LA\\",\\"wxOrderId\\":\\"30270103141493493780073885745246\\"}",
"respMsg":"交易成功",
"tpamTxnSsn":"4200001028202106224502971059",
"origRespCode":"0000",
"txnOrderId":"Q06210622091B536027000",
"respCode":"0000"
}
五. 关单接口
适用于用户主动取消订单、系统自动取消订单和支付时间已过期等场景,避免用户停留在第三方的支付页面而迟迟未付款,最终导致重复支付的情况。
- 发送报文
{
"signAture":"MIIGRAYJKoZIhvcNAQcCoIIGNTCCBjECAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHAaCCBHkwggR1MIIDXaADAgECAhAQAAAAAAAAAAAAABBAA1lWMA0GCSqGSIb3DQEBBQUAMFgxCzAJBgNVBAYTAkNOMTAwLgYDVQQKEydDaGluYSBGaW5hbmNpYWwgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkxFzAVBgNVBAMTDkNGQ0EgVEVTVCBPQ0ExMB4XDTIwMDkyNTA4MjY1M1oXDTIyMDkyNTA4MjY1M1owfTELMAkGA1UEBhMCQ04xFTATBgNVBAoTDENGQ0EgVEVTVCBDQTERMA8GA1UECxMITG9jYWwgUkExGTAXBgNVBAsTEE9yZ2FuaXphdGlvbmFsLTExKTAnBgNVBAMUIDA1MUB4dWVoYWlAWls4MjAyMDA5MjU1MzcxMTE4XUAxMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA31Djm17gGck8hQ8FSs71+8OPOoOVAeJKcUYSjNwSypU+z5a86F/K7J0h2Aa7C+UQ7f+KQjAX2SJ0ysg/Oh+BgTau7RKKX3BRREz+XPqHm5LCJd9pUjm9vAGp7d8Kg/vt1A1sPRxsXenhgs2nAxp4i83DTeYMGU6lDsWV8I+QBAb1X7fcqa1xVN2DDVCnmisd6eyK63JAsp2Rkfnlnyx9iynDatqZw1HL9F+PwzqMYTUMVYBxIW5H9xlg8AntUj+OSjoS4a+JsbhM7RRqVJcseQ4lRix5zKmOyHqB9v1K1Nh1i3R8BsgSOYKu2qEcr0YH10i0hiT6nk/qPztorW7W/wIDAQABo4IBFDCCARAwHwYDVR0jBBgwFoAUz3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NS/w5umNg8xUVSNdWtVt/63NejpwklCIIkThFqVn2p461JTtNuvb7UIv7utHe/2APmS7SLP0S4ffVGuo8ErUHTjxexFo1KlWTDYlmc5dLHmvgsLs70bff6C2Os/EXXA3HfJeI+5MybiATMWBT0q1B7N35log7UOsBuKX7b+1gv7t2dyLSsom+dr",
"txnSubType":"100610",
"aesWay":"03",
"txnType":"1006",
"certId":"17010100001",
"encoding":"UTF-8",
"txnOrderTime":"20210622102110",
"sdkAppId":"201701",
"origTxnOrderId":"06210622084640B026540",
"origTxnOrderTime":"20210622084640",
"merId":"8202009255371118",
"txnOrderId":"C062106221021B10027021",
"signMethod":"01"
}
-响应报文
{
"signAture":"MIIGPAYJKoZIhvcNAQcCoIIGLTCCBikCAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHAaCCBHEwggRtMIIDVaADAgECAhAQAAAAAAAAAAAAABBAUCAUMA0GCSqGSIb3DQEBBQUAMFgxCzAJBgNVBAYTAkNOMTAwLgYDVQQKEydDaGluYSBGaW5hbmNpYWwgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkxFzAVBgNVBAMTDkNGQ0EgVEVTVCBPQ0ExMB4XDTIwMTAxOTE1NTExMloXDTI1MTAxOTE1NTExMlowdTELMAkGA1UEBhMCQ04xFTATBgNVBAoTDENGQ0EgVEVTVCBDQTERMA8GA1UECxMITG9jYWwgUkExGTAXBgNVBAsTEE9yZ2FuaXphdGlvbmFsLTExITAfBgNVBAMUGDA1MUBoenhmQFpbSDEwMDAwMTg2MV1AMTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAK9be0wUgFMo7KkiGOsiwJ6EZebCisjM5yI5ZbgtT7OlrHa1hs6do2zWRz4IvjApbe//KvOUvLwpGJX5Njf4IYHlmRIoY4n2I/afqXym+pyPMcbzZdtbvzSxIDv9ADbWTL8kTKdojzROPOqHmoQTS0mJeOUAxB3JiUjil2AvyWSXe4VVlE6RiSVYOJ8wjLzy3Z6gebngv0Yuhy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aBQAwDQYJKoZIhvcNAQEBBQAEggEAboAkWLhogbToyi/zd+0pT8BD30lE77tQg5ny13RGGkyPe6AJ6ux9tBRNB1ebnr2H9i4sjtAJs9fjYjijgx2U+ADNApBr2GKz4dlGvJRDAWRkaQuWEqg9MpYMWEiegn10HMQdYB76ymcgZFDfUdpGU4CeEwxfN/1Ve4RJynO/qhxHRvm792hgwPzjbDKPCAlE2DKoUzpB5AJxNxHdLmhiUaJ84iAGe8NCC5XPENKjCEfSke7hkqTFDwRHeneH49eZuZvmC4mjpAAqyrS6IAKwXOLwYc7zF0VMCDm87L4imIDfNwto93ojWrAUMfijdNob93jrgWbo+1lI39m04neMmQ==",
"origTxnOrderId":"06210622084640B026540",
"origTxnOrderTime":"20210622084640",
"respMsg":"微信关单成功",
"txnOrderId":"C062106221021B10027021",
"txnOrderTime":"20210622102110",
"respCode":"0000"
}
六. 对账接口
略