Home  >  Article  >  Backend Development  >  PHP支付宝接口支付功能可以实现,但是中间出现一个空白页面,里面是一个按钮,小弟我现在想去掉这个按钮求教

PHP支付宝接口支付功能可以实现,但是中间出现一个空白页面,里面是一个按钮,小弟我现在想去掉这个按钮求教

WBOY
WBOYOriginal
2016-06-13 11:52:271143browse

PHP支付宝接口支付功能可以实现,但是中间出现一个空白页面,里面是一个按钮,我现在想去掉这个按钮求教
如题, 我做了一个PHP的支付宝功能,现在支付可以正常使用,但是中间会有一个空白页面,上面有个确认按钮,这个确认按钮不用点击就自动跳转到支付页面了。 我想这个空白的页面也没什么用, 就想把它去掉,直接跳转到支付宝的支付页面,下面的代码是出现这个按钮的代码,

//建立请求<br />		$alipaySubmit = new AlipaySubmit($alipay_config);<br />		$html_text = $alipaySubmit->buildRequestForm($parameter,"post", "确认");<br />		echo $html_text;

但是去掉这个代码就不能跳转到支付页面了,所以请假一下大家
------解决方案--------------------
在buildRequestForm方法里直接去掉那个确认按钮就行了。

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