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 websiteadd 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.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 alsoupdate
to the UID field of this record , after selecting, the QR code can be read, and the Our EXE program (actually a WEBVIEWcontrol
, 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 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!