SeekingAnswersX New Community Member
New Community Member
Posts: 1
Kudos: 0
Accepted Solutions: 0

Which paypal service would suite me best and how can I arrange storage

I have a website where users are able to have free or premium access to content. I would like to sell 30 day and 90 day premium account upgrade to my customers using paypal. User would click the buy button, pay on paypal site and the account would be updated on my site automatically with IPN. The question is:


* Which paypal service would suite me best?

* Do I need to generate order id every time user sees a buy now button so I have something to pass to paypal? or should I send user id and item id and create order when IPN connects and purchase is made?


I would like to NOT reinvent the wheel...

0 Kudos
Administrator PayPal_Frank
Posts: 1428
Kudos: 211
Accepted Solutions: 46

Re: Which paypal service would suite me best and how can I arrange storage

Hi SeekingAnswersX,


Great question!  I'm going to assume that the 30 or 90 day upgrade would be a one time payment and that there isn't any need for subscriptions or recurring payments.


For the easiest solution to setup, I would recommend using Website Payments Standard (more info can be found at


You already know about IPN which is also the best way for us to notify your servers about the payment.  You are also correct that some sort of unique identifier would need to be generated so that you know which account is being upgraded.  Documentation for IPN can be found here:


You could use the "custom" or "item_number" variables to pass the unique identifier.  That usually involves server side scripting to dynamically add something like <input type="hidden" name="custom" value="UNIQUE_VALUE"> for each customer.


The trickiest part of this entire setup would probably be the IPN listener script.  Code examples to get you started can be found here:


I hope this helps! Smiley Very Happy


- Frank

If you see a helpful post, please accept it as a solution or give the author kudos. Smiley Happy Thanks!
0 Kudos