聚合支付里各扫码支付的返回报文样例

qq扫码返回url:

https://myun.tenpay.com/mqq/pay/qrcode.html?_wv=1027&_bid=2183&t=6V1118c62c2a8a9679cfafa84b9567ba

支付宝扫码返回url:

https://qr.alipay.com/bax06084wth0qnixjrfu803c

微信扫码返回url:

weixin://wxpay/bizpayurl?pr=4vyvMOx

微信公众号支付 返回的报文:>more

<xml> 
  <appid>wx290ce4878c94369d]]>appid>  
  <charset>UTF-8]]>charset>  
  <mch_id>102540884712]]>mch_id>  
  <nonce_str>D2B6428E-322B-4002-B8D5-E54019B7]]>nonce_str>  
  <pay_info>{"appId":"wx290ce4878c94369d","timeStamp":"1494399370652","status":"0","signType":"MD5","package":"prepay_id=wx201705101456106519a1fec60778026692","callback_url":"http://eyoukeapp.emaxcard.com/emax-travel-web/callback/paySuccess/6267964708862559233/1/0","nonceStr":"1494399370652","paySign":"557EFEB8F947AF4B56D09CF4E0903C8E"}]]>pay_info>  
  <result_code>0]]>result_code>  
  <sign>C0E37C1E9805033B6A6C6227A20FE150]]>sign>  
  <sign_type>MD5]]>sign_type>  
  <status>0]]>status>  
  <token_id>289caaf3d0fcde3b353c300820e173f18]]>token_id>  
  <version>2.0]]>version> 
xml>

 公众号支付详解,分原生形式和封装形式。封装形式是指将浏览器从原支付页跳转到渠道封装好的一个微信支付页面,这个页面调起微信支付控件,使用这种方式的话不需要传递openid参数。当然,我们作为聚合支付服务提供方,那自然是对接原生形式了。原生形式是将响应报文里的pay_info输出到原支付页面的js变量里,利用 WeixinJSBridge.invoke函数,调起微信支付控件。

onApiSuccess = function () {
    if (typeof WeixinJSBridge == "undefined") return;var options =<%=pay_info%>;
    WeixinJSBridge.invoke('getBrandWCPayRequest', options, function (res) {if (res.err_msg == "get_brand_wcpay_request:ok") {
            var callbackUrl = '<%=redirect_url%>';
            if (callbackUrl && callbackUrl.length > 0) {
                location.href = callbackUrl;
            }
        }
    });
}

 

微信h5:>log

北京中信2微信H5支付请求报文:
<xml>
<appid>a20180112001223557appid>
<mch_id>m20180112001223557mch_id>
<method>mbupay.wxpay.mwebmethod>
<sign>158B0D999A890C549BEDBAFABCF39BB3sign>
<version>2.0.1version>
<nonce_str>0a1708e1df6b4e67b354864dd4895862nonce_str>
<body>2018012724270004/9001001899body>
<out_trade_no>DD2018012700134938out_trade_no>
<total_fee>20000total_fee>
<spbill_create_ip>123.151.148.57spbill_create_ip>
<notify_url>http://pcenter.shenbianhui.cn/PayAndRefund/3rdCallback.ashx/Pay/BeijingCitic2/notify_url>
xml>
响应报文:
<xml>
  <sign>F989944C16E066D7471E518EE258CDCA]]>sign>
  <result_code>SUCCESS]]>result_code>
  <mch_id>m20180112001223557]]>mch_id>
  <prepay_id>wx2018012703001272fa37d02d0549943455]]>prepay_id>
  <return_msg>OK]]>return_msg>
  <sign_type>MD5]]>sign_type>
  <appid>a20180112001223557]]>appid>
  <charset>UTF-8]]>charset>
  <nonce_str>yEJ5U419XuvM4Bu3]]>nonce_str>
  <return_code>SUCCESS]]>return_code>
  <mweb_url>https://wx.tenpay.com/cgi-bin/mmpayweb-bin/checkmweb?prepay_id=wx2018012703001272fa37d02d0549943455&package=3016512628]]>mweb_url>
  <version>2.0.1]]>version>
xml>

浏览器重定向到mweb_url,会调起微信客户端及支付控件。

微信h5支付官方文档 https://pay.weixin.qq.com/wiki/doc/api/H5.php?chapter=15_1

结束

 

你可能感兴趣的:(聚合支付里各扫码支付的返回报文样例)