PHP implements personal Alipay payment development (1)

藏色散人
Release: 2019-01-14 09:07:48
Original
13005 people have browsed it


#In the process of website development, especially shopping mall websites, it is required that the website must be able to implement online payment functions. At this time, it is necessary to implement the complete transaction process through a third-party payment platform. Common third-party payment platforms are such as Alipay, so the website needs to develop the Alipay interface to implement Alipay's online payment function.

PHP implements personal Alipay payment development (1)

However, basically all Alipay interfaces are only open to enterprises, so if you are an individual, you can only choose to use other payment methods or other Third-party interface, such as code payment.

Below we will briefly introduce to you the process of implementing personal Alipay payment development through third-party interfaces.

The so-called third-party interface has two forms.

1. Apply for the Alipay interface through a third party. When the order is completed, you need to pay a certain percentage fee to the third party interface.

2. On-hook method (code payment)

Code payment is a third-party payment platform that integrates WeChat payment, Alipay payment, and QQ wallet payment, and can ensure instant payment. .

Then to hang up, you need to download the code payment software, and after downloading, log in to the code payment account and Alipay account . Then the code payment account can monitor the status of each order in the Alipay account in real time.

The online payment workflow is as follows:

First create an order-->display payment page-->payment-->notification-->process order--> Complete

PHP implements personal Alipay payment development (1)

Code payment official website: https://codepay.fateqq.com/home.htm

For example, when the user purchases After purchasing the product and successfully paying the price to the webmaster, a transaction success message will be returned to the web page through this third-party interface.

In short, in a transaction through a third-party payment interface, after the buyer purchases the goods, he uses the account provided by the third-party platform to make the payment, and the third party notifies the seller of the arrival of the payment.

Due to the limited length of the article, this section will briefly introduce the development of personal Alipay payment with PHP. In subsequent articles, we will gradually explain in detail the specific methods of implementing personal Alipay payment development with PHP.


The above is the detailed content of PHP implements personal Alipay payment development (1). For more information, please follow other related articles on the PHP Chinese website!

Related labels:
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