doukeyong3746487 2013-09-03 05:10
浏览 127
已采纳

使用PHP设置即时付款通知 - PayPal

I have set up a PayPal Sandbox account and have created a script to take payments using PHP/cURL which basically follows this tutorial. We have already purchased a PayPal Payments Pro account to use it with. Now I need to set up Instant Payment Notification (IPN) In order to show payment details on our confirmation page and keep track of transactions in our own database.

Questions: How do I set up IPN in the PayPal Sandbox? How does IPN tie into the NVP API I Used? I've seen several PHP Tutorials with code samples but none of them explain how to set it up with the API.

References: Here is the NVP API Manual. Here is the Order Management Integration Manual. Here's an FAQ type post on PayPal.

Many Thanks.

  • 写回答

1条回答 默认 最新

  • douxiuyu2028 2013-09-03 05:40
    关注

    IPNs should be enabled for you be default. If not, you can enable them from your PayPal account -> Profile -> My Selling Tools -> Instant payment notifications.

    IPNs are triggered by API calls such as DoExpressCheckoutPayment, DoDirectPayment, RefundTransaction etc. In general, PayPal generates an IPN message when external events arise that might affect a transaction, such as disputes, chargebacks, eCheck clearing, and various recurring payment and subscription events.

    When you setup your IPN listener,

    1. Ensure it is reachable from the internet. You can use the IPN simulator to verify reachability.
    2. Register a global IPN listener URL in the IPN settings page above OR provide a IPN notification URL with every API call. See the API reference to understand how this can be done.
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 找一个网络防御专家,外包的
  • ¥100 能不能让两张不同的图片md5值一样,(有尝)
  • ¥15 informer代码训练自己的数据集,改参数怎么改
  • ¥15 请看一下,学校实验要求,我需要具体代码
  • ¥50 pc微信3.6.0.18不能登陆 有偿解决问题
  • ¥20 MATLAB绘制两隐函数曲面的交线
  • ¥15 求TYPCE母转母转接头24PIN线路板图
  • ¥100 国外网络搭建,有偿交流
  • ¥15 高价求中通快递查询接口
  • ¥15 解决一个加好友限制问题 或者有好的方案