1

I'm having a hard time knowing which IPN events I need to handle, it's kind of a bit confusing for me, so I thought I would confirm that the ones I handle are sufficient or if I'm missing any significant events.

I'm simply trying to have the user subscription activated on my end since they subscribe until they unsubscribe, which should be straightforward using subscr_signup and subscr_cancel

But it gets confusing once you start reading the events for retries, if failed while already a subscriber (if that could happen), if having insufficient balance, etc..

I have read their documentation on those events, but a sentence for each event is far from enough for me to get the whole picture, so I was wondering if anyone knows better

https://developer.paypal.com/docs/classic/ipn/integration-guide/IPNandPDTVariables/

Preston PHX
  • 27,642
  • 4
  • 24
  • 44
  • I tried, and failed: https://money.stackexchange.com/questions/65917/calculating-balance-with-my-downloaded-paypal-transaction-history – Dai Nov 23 '19 at 07:53
  • this is kind of a different question, im not sure why someone down voted it when it's a perfectly valid question :\ – User45842185 Nov 23 '19 at 09:45
  • 1
    `subscr_signup` isn't a money event, it is a registration event. You should be concerned with the actual payment events, without which the subscription should be suspended, or not activated in the first place if you have previously only received `subscr_signup`. Note that you can receive the first payment before the signup event. You are also interested in the 'end of term' event. – user207421 Jan 01 '20 at 06:15
  • 1
    Does this answer your question? [PayPal Subscription IPN Next Billing Date](https://stackoverflow.com/questions/21428413/paypal-subscription-ipn-next-billing-date) or this: [Subscriptions with Paypal IPN](https://stackoverflow.com/q/1061683/207421)? – user207421 Jan 01 '20 at 06:26

1 Answers1

2

Late edit: I just realized the original question was more focused on Subscription IPNs in particular, so I changed its title. Subscriptions are tricky because you need to pay attention to whether it's a message about the subscription itself being updated for the future, like subscr_cancel, or a message about the present term of the subscription ending, like subscr_eot. These are different things, and user207421 linked to a helpful answer: Subscriptions with Paypal IPN


The short answer is, handle the events that you want to handle. This is a business/implementation decision; we can't tell you what you should do.

If you are in doubt, log all IPN messages to a flat text file so that you can always go back later, review what you've received, and decide whether you want to add new automatic handling of certain events.

You need to know what you want your IPN handler to do in the event of each type of message, and we can't answer that for you.


For what it's worth, IPN is an older technology of PayPal's. The newer one is called Webhooks, where you choose to subscribe to particular events. And if you don't subscribe to them, you simply don't receive them. Because it all really is your choice as far as what you want to do and handle; no one can tell you what you should do, that's your job as a software designer/architect. Here is the PayPal Webhook documentation for anyone wondering: https://developer.paypal.com/docs/integration/direct/webhooks/

Preston PHX
  • 27,642
  • 4
  • 24
  • 44