在瀏覽器進行微信h5支付時出現:


在
https://pay.weixin.qq.com/wiki/doc/api/H5.php?chapter=15_4 官網能夠看到可能出現這個問題的緣由:


java中我使用重定向進行跳轉:
response.sendRedirect(result.getMwebUrl());
可是我跳轉了以後仍是出現一樣的問題,
是由於權限的問題,商戶平臺申請h5支付時會填寫產品域名,請求後端支付接口時必須與產品域名同樣,這樣跳轉後是在產品域名下請求mwebUrl,
若是不是在這個指定的產品域名下仍是會出現「商家參數格式有誤,請聯繫商家解決」的問題。