Home  >  Q&A  >  body text

javascript - How to call the WeChat payment interface on the PC website

After clicking WeChat Pay, do you generate a QR code for others to scan? Does anyone have any suggestions?

天蓬老师天蓬老师2663 days ago1121

reply all(3)I'll reply

  • 女神的闺蜜爱上我

    女神的闺蜜爱上我2017-07-05 11:00:18

    1. Create an order and call the WeChat interface to generate a QR code
    2. On the QR code display page, add a timer to check the order status every X seconds
    3. After the customer scans the code, you will receive WeChat’s proactive notification, modify the order status according to the notification
    4. Step 2, detect that the order is completed, and prompt the customer that the payment is successful

    Complete DEMO, asp: WechatASP
    Other languages ​​are also available on the street

    reply
    0
  • 巴扎黑

    巴扎黑2017-07-05 11:00:18

    WeChat has detailed API introduction documents, you can take a look. It’s hard to explain in a few words here:
    https://pay.weixin.qq.com/wik...

    reply
    0
  • phpcn_u1582

    phpcn_u15822017-07-05 11:00:18

    The idea on the 1st floor is correct. Please refer to the online website. The appreciation function in simple articles http://www.jianshu.com/; the appreciation function in useful articles http://www.youyong.top/

    reply
    0
  • Cancelreply