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

巴扎黑
Release: 2016-11-10 11:33:28
Original
1209 people have browsed it

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.


source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template