First you need to download the instant to account trading interface, Portal https://doc.open.alipay.com/doc2/detail?treeId=62&articleId=103566&docType= 1
Select (Create_direct_pay_by_user)
then unzip, select the MD5 signed version of the file
There is a file called Create_direct_pay_by_user-php-utf-8 in this folder, we use this file ~
then open the file as shown
and rename the four PHP files in the folder lib.
alipay_core.function.php renamed as: corefunction.php;
alipay_md5.function.php renamed as: md5function.php;
alipay_notify.class.php renamed as: notify.php;
alipay_submit.class.php renamed as: submit.php;
finally in the Thinkphp\library\vendor directory to create a new folder named Alipay, the above four php files copied into the picture shown
then, open the submit.php file, remove the following code;
require_once ("alipay_core.function.php");
require_once ("alipay_md5.function.php");
Similarly, open the notify.php file, the following two pieces of code removed;
require_once ("alipay_core.function.php");
require_once ("alipay_md5.function.php");
Next you can write code (note that the image address in the IMG folder needs to be modified)
HTML code: (This code is actually the code inside the index, copied as follows)
<! DOCTYPE html>