Solved

What Are the Key Subscription IPN Variables to use?

Posted on 2011-02-23
3
448 Views
Last Modified: 2012-06-27
Hi All,

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'?


Many thanks,

Rit
0
Comment
Question by:rito1
  • 2
3 Comments
 
LVL 22

Accepted Solution

by:
neeraj523 earned 500 total points
ID: 34968616
1.  Yes, you need to check for 'subscr_id' to update subscription status at ur db. dont forget to check 'payment_status' variable to check the status of payment.

2. Yes, 'subscr_id'  will be require to be refernced for cancellation or Modification in the subscription.

3. IPN listener need to check for 'txn_type' variable with 'subscr_payment' to validate renewals

4. Corect.

Hope this will help
0
 
LVL 1

Author Closing Comment

by:rito1
ID: 34993083
Brilliant thanks. Apologies for the delay as I didn't seem to receive your notification.

Rit
0
 
LVL 22

Expert Comment

by:neeraj523
ID: 34994415
@rit.. no worries about delayed response.. all is good till solution provided by you helps :)
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I've been asked to discuss some of the UX activities that I'm using with my team. Here I will share some details about how we approach UX projects.
How important is it to take extra precautions to protect your online business? These are some steps you can take to make sure you're free of any cyber crime.
This video teaches users how to migrate an existing Wordpress website to a new domain.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question