收藏
回答

微信公众号支付时总是报 调用支付JSAPI缺少参数:package

微信公众号支付的时候,总是报如下错误,后台返回的参数如下,前端页面取得值也对,实在是找不到原因

{"sign":"cFX6ziN7r/H5B6YivaLQIRGXupNhIDCnX1r6PsTxc8kqLRPD0saG7FKb23oQ9WbQOUyNk5tob1NA8aOT4CicGU2UHBSbb6NQWMTt3Fl9q9PkTE4BgfvWy3Hvwa+/7OEe01Nd/uIrIxurBrP36HNP8XSb0bKF6uGuu+Ejpl3t4Ls=","ysepay_online_weixin_pay_response":{"code":"10000","msg":"Success","out_trade_no":"202203250013","trade_no":"01O220325702622872","trade_status":"WAIT_BUYER_PAY","total_amount":"0.02","currency":"CNY","jsapi_pay_info":"{\"appId\":\"wx95cff72a25daa68c\",\"timeStamp\":\"1648205340\",\"nonceStr\":\"5ff58da03d4f4784b17d5dc48bf40181\",\"package\":\"prepay_id=wx25184900324846cb25871ad6e5df1d0000\",\"signType\":\"RSA\",\"paySign\":\"wO1YMWCeHU3c4SKq0YeZ5Nqe0wCYaerjiZ1J6Km2rI8ku0vQ4c9mJZF/JzsmRa5Rb/bMX5uqE+gARmNW9on6gyK4y5ATs0Jfnd/iiGymHziZeCy6lLO6BPuuSd3oUWDHWNkU3qCJErUL3BmyL6AQmeS7lQ17zDvxUjdPunjwGAns+UDvlcZbUGkAgmpbZVu18h2+CXhefFfgdymppw52twz/Fr6ekDbYOYUlEZ3KArxA0IbsZSVyiQpm1iVIKIPPalSPm75Bta6lXgfJXKAurcd4pHlNgjsZTexP4B+jF8m+Wix1YttHSuV2ppUmYpJNj8fxPUaepk/nHDgulFqClw==\"}"}}

回答关注问题邀请回答
收藏

1 个回答

  • Memory
    Memory
    2022-03-28

    用vconsole看下实际调起支付的参数

    2022-03-28
    有用
    回复
登录 后发表内容