Home  >  Article  >  Backend Development  >  How to write an interface in php for WeChat scan code payment on iOS under the yii2 framework

How to write an interface in php for WeChat scan code payment on iOS under the yii2 framework

WBOY
WBOYOriginal
2016-08-18 09:16:331207browse

A QR code will be given directly on the app. Scan this QR code to complete the payment. Because I have never made a payment before, I hope someone can give me some guidance. It would be better to have a reference case. Thank you very much

Reply content:

A QR code will be given directly on the app. Scan this QR code to complete the payment. Because I have never made a payment before, I hope someone can give me some guidance. It would be better to have a reference case. Thank you very much

Save the connection in the QR code and submit it to your backend as soon as you scan it on your phone. Then after your backend processing is completed, just return the json data

I think you should refer to the official documentation and follow the interface rules step by step. Refer to the documentation

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