参数
{
"amount": {
"total": 10,
"currency": "CNY"
},
"spMchid": "xxxxxx",
"description": "测试二级商户个人H5商户支付",
"subMchid": "xxxxxx",
"spAppid": "wxxxxxx",
"supportFapiao": true,
"settleInfo": {
"profitSharing": true
},
"sceneInfo": {
"payerClientIp": "xx2.xx.xx.xx",
"h5Info": {
"type": "iOS"
}
},
"outTradeNo": "test_17XXXXXX9",
"notifyUrl": "https://www.XXXXX.com"
}
1.当前调起H5支付的referer为空导致,一般是因为直接访问页面调起H5支付,请按正常流程进行页面跳转后发起支付,或自行抓包确认referer值是否为空
2.如果是APP里调起H5支付,需要在webview中手动设置referer,如(Map extraHeaders = new HashMap();
extraHeaders.put("Referer", "商户申请H5时提交的授权域名");//例如 http://www.baidu.com )