How do I know if I unsubscribe from Paypal

I have included a PayPal trading account on the website, doing this for the client. People can subscribe to the website after subscribing and, therefore, pay via PayPal. We have regular payments. But if people unsubscribe from the site, their access to the site is closed, but my problem is that people do not click on unsubscribe from the site, but simply cancel the recurring payment from their own PayPal accounts, how can I cancel my subscription to site. Please suggest some PHP code or idea to unsubscribe.

Thanks Advance, vikas tyagi

+6
source share
2 answers

I got this perfect solution to my question

In addition to email notification, PayPal can send you transaction data (also called instant payment notifications) to a specific URL. With an instant payment notification, PayPal sends a payment notification message with an encrypted code to the specified URL for each payment you receive. Follow the instructions below to set up an instant payment alert.

  • Go to the PayPal website and log in to your account.
  • Click Profile at the top of the page.
  • Click "Instant Payment Notification Settings" in the "Sales Preferences" column.
  • Click "Change IPN Settings."
  • Enter the notification URL and select "Receive IPN Messages."
  • Click "Save."

You can send customized emails from instant payment data. See http://paypaltech.com/SG2 for sample scenarios.

We can customize the sample script according to our need.

+6
source

Add logic to the Paypal IPN processor, Paypal should send a notification to your server via IPN with this information.

https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_ECRecurringPayments

Another idea might be to request the PayPal API and that the subsection is still active when the user logs in.

But I'm sure the IPN handler is easier to implement

+1
source

Source: https://habr.com/ru/post/908948/


All Articles