Home > Backend Development > PHP Tutorial > 用过易宝支付接口的友人看看

用过易宝支付接口的友人看看

WBOY
Release: 2016-06-13 12:10:43
Original
1502 people have browsed it

用过易宝支付接口的朋友看看
易宝支付接口中回调时,r9_btype=2 服务器点对点通讯是个什么情况,该怎么处理?之前没接触过支付的东西,大神帮帮忙啊
------解决思路----------------------
r9_btype=1,说明你交易成功了,此时你应该将你数据库里面的订单状态改为已支付,但是由于未知原因(如网络问题)你没有更新的你数据库中订单的状态(还是未支付)
此时r9_btype=2就有用处了,它就是通知你交易成功了,你可以再次去更改订单状态
当然不能让它一直点对点的通信,所以r9_btype=2时你应该这样做

<br />if($r9_BType==1){<br />	//成功页面<br />}elseif($r9_BType==2){<br />	//更改订单状态...<br />	echo 'success';//一定要以“success”开头,之后就不会点对点的通信<br />}<br />
Copy after login

Related labels:
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