Solved

What Are the Key Subscription IPN Variables to use?

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

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.
"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

920 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

15 Experts available now in Live!

Get 1:1 Help Now