Paypal IPN 验证 - 尽管已到达成功页面,但仍无法正常工作 [英] Paypal IPN Validation - Doesn't work despite success page being reached

查看:103
本文介绍了Paypal IPN 验证 - 尽管已到达成功页面,但仍无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近几天,我一直在为一些小问题撞墙.这次我是拼图的最后一块.在我的 wordpress 购物车插件的 php 函数中,我有以下内容:

I've been bashing my head against a brick wall the last few days on minor problems. This time I am on the final piece to the puzzle. In my php function of a wordpress cart plugin I have the following:

相关功能 - http://codepad.org/uDm3q9yp

Paypal 类 - http://codepad.org/friBthoO

Paypal Class - http://codepad.org/friBthoO

我设法通过了购买罚款.如果我检查沙盒帐户,卖家会收到来自贝宝和金钱等的正确电子邮件.然而,功能中的案例IPN"似乎不起作用.没有发送详细信息的电子邮件.成功案例是通过显示的感谢页面来实现的.我不明白我怎么会错过任何东西.有什么想法吗?

I manage to go through the purchase fine. If I check on the sandbox account the seller receives the correct email from paypal and money etc. The case "IPN" in the function doesn't seem to work however. No email is sent with details. The success case is reached with a thank you page shown though. I don't understand how I could have missed anything. Any ideas?

推荐答案

我会直接说我不会坐在这里测试你的脚本,但我理解从我过去的经验中解决 IPN 脚本问题的痛苦所以我会分享一些技巧:

I'll be straight forward I'm not gonna sit here and test your script, but I understand the pain of trouble shooting an IPN script from my past experience so I'll share some tips:

  • 使用 IPN 测试仪/模拟器:https://cms.paypal.com/ca/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_admin_IPNTesting
    • 检查它是否可以到达您的脚本地址
    • 检查您的脚本是否正在回传
    • 检查您是否从 Paypal 收到了 VALID 回复
      • 如果可行,请检查 Paypal 将其 IPN 信息发送到正确脚本的位置

      这篇关于Paypal IPN 验证 - 尽管已到达成功页面,但仍无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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