Home >Backend Development >PHP Problem >PHP Alipay interface development steps

PHP Alipay interface development steps

(*-*)浩
(*-*)浩Original
2019-09-09 10:43:474241browse

The process of connecting php to Alipay is written here for the reference of novices like me.

PHP Alipay interface development steps

#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)

PHP Alipay interface development steps2. Download SDK&Dome (URL https://doc.open.alipay.com/docs/doc.htm?spm=a219a.7629140.0.0.CBtzBF&treeId=203&articleId=105910&docType=1)

PHP Alipay interface development stepsI chose the MD5 signature method. The red box below is the completed php Demo (recommended learning: PHP programming from entry to proficiency)

PHP Alipay interface development steps

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

PHP Alipay interface development steps4. After the configuration is completed, this small example can be accessed directly

PHP Alipay interface development steps

PHP Alipay interface development steps

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!

Statement:
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
Previous article:How to use global in phpNext article:How to use global in php