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

How to make scan code payment under the yii2 framework

WBOY
Release: 2016-08-18 09:15:58
Original
1368 people have browsed it

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

Related labels:
php
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template