Home >Backend Development >PHP Tutorial >Solve the problem that when paying through the PHP Alipay interface, it will jump to a confirmation button page

Solve the problem that when paying through the PHP Alipay interface, it will jump to a confirmation button page

巴扎黑
巴扎黑Original
2016-11-10 11:33:281204browse

After the PHP Alipay interface is successfully connected, I find that when paying, it will jump to a page with a confirm button. This greatly affects the user experience. How to solve it?

Check the code and find that alipayapi.php has this code:

$alipaySubmit =newAlipaySubmit($alipay_config);

$html_text = $alipaySubmit->buildRequestForm($parameter,"post","confirm");

echo $html_text;

The 'OK' button is returned by buildRequestForm. Find the place where this method is defined:
lib/alipay_submit.class.php

In the method

$sHtml = $sHtml."";

Change it to

$sHtml = $sHtml."";

or change it to

$sHtml = $sHtml."";

I integrated Alipay in my blog very early :www.webyang.net/Index/alipay, I never paid attention to this problem ~ I solved it today.


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