Solved

What Are the Key Subscription IPN Variables to use?

Posted on 2011-02-23
3
455 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
When the s#!t hits the fan, you don’t have time to look up who’s on call, draft emails, call collaborators, or send text messages. An instant chat window is definitely the way to go, especially one like HipChat. HipChat is a true business app. An…
The viewer will learn how to dynamically set the form action using jQuery.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

751 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