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 ETLCloud 处理json多层级问题
  • ¥15 matlab中使用gurobi时报错
  • ¥15 这个主板怎么能扩出一两个sata口
  • ¥15 不是,这到底错哪儿了😭
  • ¥15 2020长安杯与连接网探
  • ¥15 关于#matlab#的问题:在模糊控制器中选出线路信息,在simulink中根据线路信息生成速度时间目标曲线(初速度为20m/s,15秒后减为0的速度时间图像)我想问线路信息是什么
  • ¥15 banner广告展示设置多少时间不怎么会消耗用户价值
  • ¥15 可见光定位matlab仿真
  • ¥15 arduino 四自由度机械臂
  • ¥15 wordpress 产品图片 GIF 没法显示