简体   繁体   English

如何在PHP中使用Paypal跟踪定期付款明细?

[英]How to track recurring payment details with paypal in php?

I am using paypal as my payment gateway in one of my cakephp 3.3. 我在我的cakephp 3.3之一中使用贝宝作为我的支付网关。

I have already done with recurring payment and it is working fine.But i am not able to track every payment of specific user after the recurring payment start. 我已经完成了定期付款,并且可以正常工作。但是,在开始定期付款后,我无法跟踪特定用户的每笔付款。

So please help me on this, how can i track each payment details which occurs with recurring payment. 因此,请对此提供帮助,我该如何跟踪定期付款发生的每个付款明细。 I want to keep this record in my database. 我想将此记录保存在数据库中。

Thanks in advance. 提前致谢。

Take a look at Instant Payment Notification (IPN) . 查看即时付款通知(IPN)

Each time a transaction occurs on your PayPal account, PayPal will send a POST request of the transaction data to a URL that you specify. 每次在您的PayPal帐户上进行交易时,PayPal都会将交易数据的POST请求发送到您指定的URL。

Your script / URL can receive that data and process it however you need to. 您的脚本/ URL可以接收该数据并根据需要进行处理。 It happens automatically, and in most cases instantly when the transaction occurs. 它会自动发生,并且在大多数情况下会在交易发生时立即发生。

You can build updates to your database, email notifications, hits to 3rd party web services, etc. into an IPN solution. 您可以将数据库更新,电子邮件通知,对第三方Web服务的点击等构建到IPN解决方案中。

UPDATE UPDATE

For those using the REST API then instead of IPN you would use Webhooks . 对于使用REST API的用户,可以使用Webhooks代替IPN。 They're technically the same thing, but function slightly differently. 从技术上讲,它们是同一件事,但功能略有不同。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM