Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer peopleโ€™s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer peopleโ€™s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 246503
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T21:10:41+00:00 2026-05-11T21:10:41+00:00

this is a follow up on my question on paypal integration. I’m working ona

  • 0

this is a follow up on my question on paypal integration. I’m working ona membership site for racing fans. My membership site has 3 membership levels – free, gold and premium. When a user signs up he/she can gets a free membership on the spot but has the option to upgrade to a gold membership for 4 Dollars a month or a premium membership for 10 Dollars a month.

I’ve gone through the paypal integration guide a few times though and have a vague understanding of how to get this to work. I think the recurring payments option would be fine enough – however I don’t know how do I implement this in my system.

Like when a user decides to go for a paid account i.e. Gold or premium from basic – what should I do on both my code side and on the paypal account side – I’d really appreciate if anyone would outline what I’d have to do here.

Plus when a user decides to upgrade from lets say a Gold to a premium account – there is the issue of computing how much should be charged to upgrade his/her account eg: a user has been billed for 4 dollars and the next day opts to go for a premium account so assuming that the surplus for the rest of the month is 5 dollars and further from that all payments would be recurring 10 dollars monthly – how do I implement this?

And in case a user decides to downgrade from a premium account of 10 dollars a month to a gold account of 4 dollars a month – how do I handle the surplus which would have to be refunded for that month alone and changing the membership?

And like wise if someone wishes to cancel membership and go to having a free account – how do I refund whatever is owed and cancel the subscription.

I’m sorry if it sounds like I’m asking to be spoon fed ๐Ÿ™ I’m quite new to this and this is for a client and I would really appreciate all the help here and really have to get this working right.

Thanks again everyone – waiting for all your replies.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T21:10:41+00:00Added an answer on May 11, 2026 at 9:10 pm

    You need to start reading up on Instant Payment Notification (IPN). This is basically just a callback from PayPal to your site, when some kind of transaction has occurred.

    What you need is a php-script on your site, which you register in your paypal account. PayPal will invoke this script with information and you send information back to PayPal to let them know if the transaction is ok nor not. While doing this you have all sorts of ways to intercept what has happened.

    If the customer bought product X, where X in your case can be a “gold membership” you can check against your database (assuming you have some php/mysql or similar setup) if this particular customer already had product Y you should refund blabla. That logic is completely up to you. Since it’s a php script you have access to anything that php gives you access too, reading/writing from/to databases, files, mail etc.

    There are also various packages that have support for this IPN. I believe ColdFusion is one of them.

    Cheers !

    Edit:

    Good advice – however considering the
    situation I have I would like to know
    what is the easiest and most hassle
    free method to follow i.e. should I go
    with recurring billing or have the
    customer pay periodically. I’m open to
    all options and better yet any code
    samples that I can use straight on ๐Ÿ™‚

    I’d personally go for the method the customer finds the easiest way. Using recurring billing is for love and match making sites, that want to exploit on your deepest feelings as a human being. “When the customer forgets about his account we can bill him an extra period” (sitting in a wheel chair in his evil den, laughing out loud muahahaha and pats his white cat).

    Here’s a quick php skeleton that you can use as IPN receiver.

    Edit2

    Ok so recurring billing isn’t such a
    good idea then :-S – I mean with
    recurring billing I don’t think we
    would be able to maintain on our
    website a history of when teh customer
    has been billing is it?

    Sure you could keep a history of this. You know when the customer first started paying and you could keep track internally whenever the customer should be invoiced/billed again. It’s just a periodic check versus the first payment date.

    Edit3

    So in this case I would do best to go
    with my older idea of allowing the
    customer to pay in advance for 3,6,12
    months and run a check when the time
    is near to get him/ her to renew. Cool
    – so in that case I won’t be using paypals recurring subscription service
    but their Buy Now button thingy or
    sorta :-S are there any free books on
    how to do this? I seem to have a bad
    habit of overcomplicating things.

    Yup. Buy now buttons are very nice to use together with IPN. I think you can have different IPN handlers (e.g. different php pages) for different buttons. Free books? As in those old things made out of paper? ๐Ÿ˜‰ There are a lot of information on the web. PayPal has tutorials on how to get started. PayPal also has a “sandbox” site, where you can create test buttons that produce fake transactions against your site. You will need to use this.

    Edit4

    Thanks a lot man for the great advice
    – figures the simpler I keep it the less issues I’d run into. Would holler
    again on SO should I need more advice.
    I had worked once a while back in
    2Checkout but that was on code already
    built so I had a vague idea of what
    was going on – this is my first
    project using paypal though – ah well
    never too late to learn ๐Ÿ™‚

    One final thingie. Make sure that you from the beginning setup basic logging abilities, so you can dump data to file and see what’s going on, what kind of data PayPal is sending to you. This has helped me tremendously. It doesn’t have to be anything advanced, just a simple text file will do fine. Otherwise it can be real pain to “debug” these transactions. “FTW is going on now?” ๐Ÿ™‚

    Good luck !

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is a follow up question from Calling constructor in return statement . This
This is a follow up question to a previous question I asked about calculating
This is a follow-on question from the one I asked here . Can constraints
This is a follow-up question to ASP.NET How to pass container value as javascript
This is a follow-up question to this question I asked earlier. Btw thanks Neil
this is a follow-up question of mine. Suppose now I have a URL :
This is a follow-up question to the following if you would like to see:
This is a follow-up question related to my previous post . Below is a
This is a follow-up question to this one . Consider this example: #include <iostream>
This is like a follow-up question to this one . Basically what I'm doing

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.