简体   繁体   中英

PayPal IPN integration in laravel (need to update recurring payment status real time in my backend)

I am integrating PayPal recurring in my laravel project using PayPal's PHP SDK. I successfully implemented that but I am stuck in just one case.

When a user subscribes to my website and at the first time I got his/her payment response but how to manage the status of its payment automatically. I am working with PayPal IPN but still not found a proper solution.

Need to update recurring payment status real-time in my backend

IPN and webhooks are the only two automated methods to be notified of recurring payments status updates that take place every billing cycle, or even in between billing cycles (such as cancellation).


If you are concerned about the first , initial payment that a customer makes, you do not need IPN or webhooks to be notified of their initial checkout provided you use a server-side pattern for your integration, such as this one: https://developer.paypal.com/demo/checkout/#/pattern/server

However, if you do not use a server-side pattern to guarantee your server receives an immediate API response of success/failure of the recurring profile creation, then you do need an IPN or a webhook to guarantee your server is notified.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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