Title: Error generating the payment QR code.
Last modified: March 13, 2020

---

# Error generating the payment QR code.

 *  Resolved [csit](https://wordpress.org/support/users/calmsmile/)
 * (@calmsmile)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/error-generating-the-payment-qr-code/)
 * Where did I make this mistake ⌊QQ截图20200313155943.png⌉

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [Alexandre Froger](https://wordpress.org/support/users/frogerme/)
 * (@frogerme)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/error-generating-the-payment-qr-code/#post-12539813)
 * Hi [@calmsmile](https://wordpress.org/support/users/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](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/`.
 *  Thread Starter [csit](https://wordpress.org/support/users/calmsmile/)
 * (@calmsmile)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/error-generating-the-payment-qr-code/#post-12540016)
 * there has 3 types to paste the url: “JSAPI支付” “Native支付” “H5支付” .
    “my_website/
   wc-api/WC_WechatPay/” paste in ? JSAPI or Native or H5? ⌊QQ截图20200313184246.
   png⌉
 *  Plugin Author [Alexandre Froger](https://wordpress.org/support/users/frogerme/)
 * (@frogerme)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/error-generating-the-payment-qr-code/#post-12540053)
 * 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 🙂 !
 *  Thread Starter [csit](https://wordpress.org/support/users/calmsmile/)
 * (@calmsmile)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/error-generating-the-payment-qr-code/#post-12540095)
 * 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 ⌊QQ截图
   20200313190937.png⌉ but i have never config the api secure key ⌊wer.jpg⌉
 *  Thread Starter [csit](https://wordpress.org/support/users/calmsmile/)
 * (@calmsmile)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/error-generating-the-payment-qr-code/#post-12540156)
 * Now it works!
    ⌊QQ截图20200313192252.png⌉⌊QQ截图20200313192117.png⌉
 *  Thread Starter [csit](https://wordpress.org/support/users/calmsmile/)
 * (@calmsmile)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/error-generating-the-payment-qr-code/#post-12540457)
 * Yes I using the Wechat Open platform + WechatPay not the Wechat Official Accounts
   Platform. here is my settings on wp-weixin plugin
    ⌊QQ截图20200313202434.png⌉⌊
   QQ截图20200313202411.png⌉⌊QQ截图20200313202546.png⌉⌊QQ截图20200313202510.png⌉⌊
   QQ截图20200313202559.png⌉
 * the H5 needs call back url ? if need, the url is?
    ⌊QQ截图20200313202822.png⌉⌊
   QQ截图20200313203028.png⌉
 *  Plugin Author [Alexandre Froger](https://wordpress.org/support/users/frogerme/)
 * (@frogerme)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/error-generating-the-payment-qr-code/#post-12540556)
 * 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 :).

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Error generating the payment QR code.’ is closed to new replies.

 * ![](https://ps.w.org/woo-wechatpay/assets/icon.svg?rev=2234214)
 * [Payment gateway for WooCommerce - Woo WeChatPay](https://wordpress.org/plugins/woo-wechatpay/)
 * [Support Threads](https://wordpress.org/support/plugin/woo-wechatpay/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-wechatpay/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-wechatpay/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-wechatpay/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [Alexandre Froger](https://wordpress.org/support/users/frogerme/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/error-generating-the-payment-qr-code/#post-12540556)
 * Status: resolved