Paypal IPN未在沙盒上发送/正在接收 [英] Paypal IPNs not sending/being received on sandbox

查看:86
本文介绍了Paypal IPN未在沙盒上发送/正在接收的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在沙盒上使用Paypal IPN.我有一个提交快速结帐的表格:

I'm trying to use Paypal IPNs on the sandbox. I have a form that submits an express checkout:

<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
  <input type="hidden" name="cmd" value="_xclick" />
  <input type="hidden" name="business" value="my-sandbox-merchant-account@test.com" />
  <input type="hidden" name="item_name" value="Item 3" />
  <input type="hidden" name="item_number" value="3" />
  <input type="hidden" name="amount" value="5.00" />
  <input type="hidden" name="shipping" value="0.00" />
  <input type="hidden" name="no_shipping" value="1" />
  <input type="hidden" name="cn" value="Comments" />
  <input type="hidden" name="currency_code" value="GBP" />
  <input type="hidden" name="lc" value="GB" />
  <input type="hidden" name="bn" value="PP-BuyNowBF" />
  <input type="hidden" name="test_ipn" value="1" />
  <input type="hidden" name="return" value="http://myhost/my-return-url" />
  <input type="hidden" name="rm" value="2" />
  <input type="image" src="https://www.paypal.com/en_US/i/btn/btn_buynow_SM.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!" />
  <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1" />
</form>

我的沙盒买家帐户可以正常付款,但是IPN通知失败.当我单击沙箱中的IPN消息时,我看到配置了正确的通知端点,但是消息失败,http响应代码为空,并且IPN typeTransaction ="made".我的日志显示我的IPN端点未收到任何消息(我知道端点已启动,因为我尝试发送手动POST).贝宝试图发送的消息是:

The payment goes through fine with my sandbox buyer account, however the IPN notifications are failing. When I click on the IPN messages in the sandbox I see that the correct notification endpoint is configured, however the message has failed, the http response code is blank, and IPN typeTransaction = "made". My logs show that my IPN endpoint hasn't received any messages (I know the endpoint is up because i've tried sending a manual POST). The message paypal is trying to send is:

handling_amount=0.00&payer_id=442H4KP3WRC9E&ipn_track_id=989ff3ead6a80&shipping=0.00
&charset=windows-1252&payment_gross=
&verify_sign=ABKgD9bUbQF9WahZwd8aOs6tdcUGAteKcEga-DtOd5oNAkSSSLAh33xt
&item_name=Item 3&test_ipn=1&txn_type=web_accept
&receiver_id=4W89DC8YDWBUG&payment_fee=&mc_currency=GBP&transaction_subject=
&custom=&protection_eligibility=Ineligible&payer_status=verified
&first_name=atest&mc_gross=5.00&payment_date=14:46:44 Aug 05, 2013 PDT
&payment_status=Completed&quantity=1&my-sandbox-merchant-account@test.com
&item_number=3&last_name=buyer&txn_id=91L22343JY671341E&mc_fee=0.40
&resend=true&payment_type=instant&notify_version=3.7&payer_email=a-test@buyer.com
&receiver_email=my-sandbox-merchant-account@test.com&tax=0.00&residence_country=US

我尝试过多次重发IPN,也尝试过IPN模拟器,但这只是旋转直到连接重置.这是贝宝(Paypal)沙盒IPN系统的问题,还是我忘记了某些东西/我在提交表单时发送了错误的数据?

I've tried resending the IPN multiple times, and have also tried the IPN simulator too but this just spins until the connection resets. Is this a problem with Paypal's sandbox IPN system, or have I forgotten something/am sending the wrong data on my form submit?

如果沙盒IPN消息传递系统有问题,除了实时测试外,我还有哪些其他测试选项?

If it's a problem with the sandbox IPN messaging system, what other options do I have for testing aside from on live?

推荐答案

如上所述,解决方案是使用标准端口(80/443)而不是非标准8080/8443

As above, the solution was to use standard ports (80/443) rather than non-standard 8080/8443

这篇关于Paypal IPN未在沙盒上发送/正在接收的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆