Conversation
supportWhere did I make this mistake
Hi @calmsmile ! First thing to check is if the QR Payment callback URL in WeChatPay backend t https://pay.weixin.qq.com/index.php/extend/pay_setting is exactly the same as the one indicated in WP Weixin WeChat Pay Settings section. It should end with wc-api/WC_WechatPay/ .
there has 3 types to paste the url: “JSAPI支付” “Native支付” “H5支付” . “my_website/wc-api/WC_WechatPay/” paste in ? JSAPI or Native or H5?
I think this is where your issue comes from! JSAPI is in-WeChat app payment Native is web (QR code) payment H5 is web (mobile browser, calling the WeChat app) payment So here, you need to put the my_website/wc-api/WC_WechatPay/ in the Native支付 field 🙂 !
Yes I put the my_website/wc-api/WC_WechatPay/ in the Native field. but the error since I put the wrong AppSecret key in the API secure key field there but i have never config the api secure key
Now it works!
Yes I using the Wechat Open platform + WechatPay not the Wechat Official Accounts Platform. here is my settings on wp-weixin plugin the H5 needs call back url ? if need, the url is?
In the WP Weixin settings, under the “QR Payment callback URL” we just talked about, you can find the “H5 Payment Domain name” for that :).
Hi @calmsmile ! First thing to check is if the QR Payment callback URL in WeChatPay backend t https://pay.weixin.qq.com/index.php/extend/pay_setting is exactly the same as the one indicated in WP Weixin WeChat Pay Settings section. It should end with wc-api/WC_WechatPay/ .
there has 3 types to paste the url: “JSAPI支付” “Native支付” “H5支付” . “my_website/wc-api/WC_WechatPay/” paste in ? JSAPI or Native or H5?
I think this is where your issue comes from! JSAPI is in-WeChat app payment Native is web (QR code) payment H5 is web (mobile browser, calling the WeChat app) payment So here, you need to put the my_website/wc-api/WC_WechatPay/ in the Native支付 field 🙂 !
Yes I put the my_website/wc-api/WC_WechatPay/ in the Native field. but the error since I put the wrong AppSecret key in the API secure key field there but i have never config the api secure key
Now it works!
Yes I using the Wechat Open platform + WechatPay not the Wechat Official Accounts Platform. here is my settings on wp-weixin plugin the H5 needs call back url ? if need, the url is?
In the WP Weixin settings, under the “QR Payment callback URL” we just talked about, you can find the “H5 Payment Domain name” for that :).