Home  >  Article  >  Backend Development  >  How to make scan code payment under the yii2 framework

How to make scan code payment under the yii2 framework

WBOY
WBOYOriginal
2016-08-18 09:15:581333browse

I now put a payment code directly on the pad page, and the user scans the pad with WeChat and then pays. Does this belong to the second mode in the development document? If it belongs to mode 2, how should I write the interface I provide for ios at this time? The other thing is how to generate this payment code

Reply content:

I now put a payment code directly on the pad page, and the user scans the pad with WeChat and then pays. Does this belong to the second mode in the development document? If it belongs to mode 2, how should I write the interface I provide for ios at this time? The other thing is how to generate this payment code

You are talking about mode two, let me explain the process

  1. Use Yii2 to generate order information and store it in the warehouse

  2. Call WeChat’s unified ordering API, which will be included in the payment SDK

  3. Generate and pay transaction to get transaction link code_url

  4. Generate code_url into a QR code and output it as a picture
    Document address

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