Home>Article>Backend Development> PHP Alipay interface development steps
The process of connecting php to Alipay is written here for the reference of novices like me.
#1. First of all, you must create an application (choose the functions you want, and it seems that you need to sign a contract for the payment function)
2. Download SDK&Dome (URL https://doc.open.alipay.com/docs/doc.htm?spm=a219a.7629140.0.0.CBtzBF&treeId=203&articleId=105910&docType=1)
I chose the MD5 signature method. The red box below is the completed php Demo (recommended learning:PHP programming from entry to proficiency)
The lib file is very important, it is the core class file of the entire interface;
alipay.config.php is the configuration file for related parameters
alipayapi.php is the Alipay interface entry file
notify_url.php is the server asynchronous notification page file;
return_url.php is the page jump synchronous notification file;
3. Open alipay.config.php
4. After the configuration is completed, this small example can be accessed directly
The above is the detailed content of PHP Alipay interface development steps. For more information, please follow other related articles on the PHP Chinese website!