I have integrated PayPal merchant account to the website , m doing it for a client People can sign up to the website after subscribing and hence paying thru PayPal .we have recurring payments. But if people unsubscribe from the site their access to the site is closed but my issue is if people don't click the unsubscribe on the site but just cancel the recurring payment from their own PayPal accounts how would I cancel their subscription on the site. Please suggest some PHP code or idea to cancel the subscription.
Thanks in Advance, vikas tyagi
i got it a perfect solution of my question
In addition to email notification, PayPal can send you the transaction data (also called Instant Payment Notification) to a specific url. With Instant Payment Notification, PayPal sends payment notification messages with encrypted code to the specified URL for each payment you receive. Follow the instructions below to setup Instant Payment Notification.
You can send customized emails from the Instant Payment Notification data. Please see http://paypaltech.com/SG2 for sample scripts.
we can customize sample script code according our need.
Add the logic to your Paypal IPN handler, Paypal should send a notification to your server via IPN with that information.
https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_ECRecurringPayments
Another idea could be queryiing paypal API and see if the subsscription is still active when the user logs in.
But im sure IPN handler is easier to implement
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With