收藏
回答

V2,V3签名错误

curl -X POST \

  https://api.mch.weixin.qq.com/v3/pay/transactions/app \

  -H "Authorization: WECHATPAY2-SHA256-RSA2048 mchid=\"1699513542\",nonce_str=\"593BEC0C930551AFEB40B4A08C8FB242\",signature=\"YGClY5FZXHMql3SsHIkJd70a39ux3OWLhHRRB7vFf/hWU//2aMJHw9epYpRA1AFvrRXLTwXd4UuYcRicX5YhQeMHdbE6GZ03Hfafd77nSOYkMu7tZtb1+tHNTiYAIMtV+jYLBAAJ41Vcy2sW30pJXStVYzyF1mL3P4hO/U1CXUYWs61+quuod5W710GEUtttVgKUEHmoeDWWIuoAwTq7tPH5WWImKXf8hVxt3bhv1h6sdRNc/wXdJV7tgtd19aYpQfu76gTBY9bm8TIvmnNYC/zCeONQyiMNSFA4vftVBeb8aLL5HXlSK0Pp8lvbY3kzf9/RZ0y9hEDuhqEaE8LSUA==\",timestamp=\"1735057727\",serial_no=\"7D5AF520836017004A5D6C603655209B325FC3DD\"" \

  -H "Accept: application/json" \

  -H "Content-Type: application/json" \

  -d '{ "appid": "wxe4c3c0ffcfc0fb7c", "mchid": "1699513542", "description": "try reason", "out_trade_no": "1415659990", "notify_url": "https://www.weixin.qq.com/wxpay/pay.php", "amount": { "total": 20, "currency": "CNY" } }'

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

1 个回答

登录 后发表内容