日期:2014-05-17  浏览次数:20446 次

paypal支付的问题
HTML code
<form target="paypal" action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
<input type="image" src="images/paypal.gif" border="0" name="submit" alt="PayPal is the safer, easier way to pay - PayPal">
<input type="hidden" name="add" value="1">
<input type="hidden" name="cmd" value="_xclick"> 
<input type="hidden" name="business" value="269569_1275530238_biz@163.com">
<input type="hidden" name="item_name" value="BoAo20100917">
<input type="hidden" name="item_number" value="20100917">
<input type="hidden" name="amount" value="100">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="quantity" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="bn" value="PP-BuyNowBF">
<input type="hidden" name="cancel_return" value="http://localhost:80/index/payment"/>
<input type="hidden" name="return" value="http://localhost:80/index/paymentsuccess"/>
</form>

这是前台的代码,点击提交后,进入paypal支付页面,点击取消,可以返回,点击立即付款如下:

您刚刚完成了付款。 
Test,您刚刚完成了付款。
即将收到的对账单中将显示您的购物。
此付款的交易号为:9TP10883RP485821S。

我们将发送确认电子邮件至888per@163.com。

  * 返回到shui liu's Test Store
  * 前往PayPal“账户信息”页面
  * 从银行账户充值
请问为什么没有返回到http://localhost:80/index/paymentsuccess,,然后如何验证支付成功


------解决方案--------------------
没有用过,帮你顶了啊。
------解决方案--------------------
有三个返回参数

一个是 return(好像是,不记得) ,是支付成功后返回的页面。
一个是 cancel_return ,是取消返回的url
一个是验证的url,(名是 notify_url) 这个最重要。用来验证的。
------解决方案--------------------
没做过paypay,做过汇付的。
主要是认真与官方的文档核对。
------解决方案--------------------
不要用本地localhost的网址测试,找一个在线的网址。
有了这个接收返回信息的在线网址之后,还要把这个网址填写到paypal

正式用的时候,测试的时候不知道是不是。
在“我的贝宝”-->“用户信息” -->“更多选项”-->“网站付款习惯设定” --> 自动返回设置为开启,返回url修改为自己网站的,付款数据传输设置为开启,其它不用改