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.