Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

What Are the Key Subscription IPN Variables to use?

Posted on 2011-02-23
3
Medium Priority
?
460 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 2000 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

Survive A High-Traffic Event with Percona

Your application or website rely on your database to deliver information about products and services to your customers. You can’t afford to have your database lose performance, lose availability or become unresponsive – even for just a few minutes.

Question has a verified solution.

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

When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
Originally, this post was published on Monitis Blog, you can check it here . It goes without saying that technology has transformed society and the very nature of how we live, work, and communicate in ways that would’ve been incomprehensible 5 ye…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Suggested Courses

722 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