Home  >  Article  >  Backend Development  >  My third-party PC website is connected to WeChat payment. I want to generate a QR code and scan it to pay. Can I do it?

My third-party PC website is connected to WeChat payment. I want to generate a QR code and scan it to pay. Can I do it?

WBOY
WBOYOriginal
2016-08-23 09:17:411461browse

I don’t know if this is WeChat payment

Reply content:

I don’t know if this is WeChat payment

It should be here https://pay.weixin.qq.com/wik...

Yes, that’s it. You just have to call this interface.

Correct answer on the first floor.
https://pay.weixin.qq.com/wik...
This page has a demo implemented by WeChat. You can download your corresponding language and apply the source code directly. Need to change something in the code. Appid, mch_id and other field values ​​can realize the payment function. When testing, it's best to be on the server. Because after the payment is completed, WeChat official will call the callback address set in your code to notify you of the payment result. If an error is reported, you can check the error based on the return value in the link https://pay.weixin.qq.com/wik...
.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn