Solved

What Are the Key Subscription IPN Variables to use?

Posted on 2011-02-23
3
442 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
Read about how to choose the best possible content marketing agency to suit your needs. Content marketing has become an integral part of running a successful tech business, so it is wise to be informed.
This video teaches users how to migrate an existing Wordpress website to a new domain.
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

757 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now