Share two interface-free payment methods besides Alipay interface, WeChat interface and interface-free collection.

Y2J
Release: 2017-05-16 11:39:19
Original
3139 people have browsed it

This article mainly introduces relevant information on several solutions to the problem that the website cannot apply for Alipay interface, WeChat interface, and interface-free payment collection implementation. Friends in need can refer to the following

The website cannot apply for Alipay Interface, WeChat interface, interface-free payment collection implementation.

Because the customer website needs payment, but cannot apply for the interface, I found a third-party interface, which stopped working every few days, so I did some research on the payment methods that are currently popular online.

Many informal business websites cannot apply for the instant payment interface of Alipay, nor can they apply for the WeChat payment interface. But we need a payment interface, what should I do?

There are many such interface-free implementation methods on the Internet.

There are two main methods:

1. Apply for third-party payment, or directly build a third-party website yourself. This website is a regular website, such as a normal shopping website that sells formal physical goods such as clothes and shoes. It is easy to apply for the interface for this kind of website.

After applying for the interface, this website can access payment normally.

Next, for our informal website, we can post data to the regular website. On the regular website

add an order

and pay normally. After the payment is completed and callback is made, the payment result will be returned to the non-regular website. Regular website, complete payment.

This method is the safest.

2, another method, is also used more now.

A QR code is provided for payment. Users can directly scan the code to complete the transfer. Install a small program

on the customer's computer. It is also available for download online and instantly scans the transaction records in the backend of Alipay and WeChat. , if there is a new record, POST it to the website to complete the payment process.

This involves a payment confirmation process, and you must know who is paying.

The usual approach is to confirm who paid through the remarks column when making payment.

Looked at other people's code and found a better way to implement it.

Firstly, Alipay mobile phone generates 50-100 QR codes for payment, and the amount is set to the amount you need. In the reason for payment, make up a number yourself, and the name of the file saved by the QR code is also this number, and then save the number records of these 50 QR codes to the database.

Each record is given a status field, 0 means payment can be made, 1 means payment is being made, and there is also a UID field.

When payment is required, first select a record with status 0 from the database. After selection, set status to 1, and the payment user ID also

update

to the UID field of this record , after selecting, the QR code can be read, and the

QR code is returned to the user. After the user completes scanning the code, at this time, in the Alipay transaction record, the remarks column will be available. The number of this QR code.

Our EXE program (actually a WEBVIEW

control

, which can refresh the Alipay transaction record page at any time) has new records, extracts the records, and POSTs them to the website. The website receives the message. Just use the number of this note to select the record

from our database. You will know the UID. Add a balance to this UID or complete the order payment. Then change the status of this record. is 0, UID is also 0,

The payment is completed. This method is now more commonly used.

【Related Recommendations】

1.

Special Recommendation

: "php Programmer Toolbox" V0.1 version download2. Complete source code download of WeChat mini program

3. WeChat mini program demo: Yangtao

The above is the detailed content of Share two interface-free payment methods besides Alipay interface, WeChat interface and interface-free collection.. For more information, please follow other related articles on the PHP Chinese website!

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