Home  >  Article  >  Backend Development  >  Scan the QR code on WeChat and jump to the web page to initiate payment.

Scan the QR code on WeChat and jump to the web page to initiate payment.

WBOY
WBOYOriginal
2016-09-26 08:27:182096browse

I recently made a webpage and wanted to use the WeChat payment function. The general meaning is that the product has its own QR code, which is the URL link. Use the get method to carry the parameters. After WeChat scans the code, it will jump to my webpage, and then activate the payment. Function.
I think the logic should be roughly described. I want to know whether this is WeChat official account payment or WeChat scan code payment, because it is just a process of calling jsapi on an h5 page, which is not very clear yet.
Then is it difficult to implement? I use PHP language. Can anyone who knows it give some tips?
What parameters should be carried in the QR code? I think it should at least include the amount. I’m not sure about the others. I also looked at the API list for WeChat Pay. For example, the order number and prepaid order number are not clear.
I hope friends who have made payments can Any advice
Thank you

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