I wonder if you can help. I have asked the same question within the Paypal forums but I know you lot are a lot quicker at answering :-)
I want to implement a subscription based payment service within my website. I will be using IPN to enable/disable my customer's accounts.
My IPN listener script will first match up my customer record based on variables I pass through to Paypal which are stored within 'invoice' and 'custom' and then I was planning to store the 'subscr_id' value...
My real questions are:
For my IPN listener to identify a subscription renewal should I store the 'subscr_id' from the initial subscription setup and then my IPN look out for this for each subscription renewal?
A similar question is if my customer decides to cancel their subscription should my IPN listener use the stored subscr_id to identify the correct record for updating?
For my IPN listener to check if the transaction is positive subscription renewal should it be looking for the txn_type value 'subscr_signup' and/or 'subscr_payment'?
Are subscription cancellations identified by the txn_type value 'subscr_cancel'?