Currently playing on my computer (tune in: pls, asx)
The Daily Biff
     
 
Wed, 14 Mar 2007

Creating a Simple PayPal-Based Storefront
One of the things I've been doing in my spare time lately is working on the Skyline High School Class of 1987 Reunion web site. One of the apps that I have written (from the ground up) allows alumni to send their confirmations (or regrets) on-line. If it is a confirmation being sent, then I display a "Buy It Now" PayPal button to allow the person to pay with PayPal if he/she so desires.

So, in order to do this, I created a set of products that include all the combinations of confirmation possibilities (with their respective price points) - five products in all. This is pretty easy for anyone to do, and you don't need a shopping cart... I just used the "Buy It Now" buttons. What I wasn't aware of is the elaborate "sandbox" system, called the PayPal Development Center, that PayPal has set up to allow any user to test out the payment processing system with any set of pre-configured products. It is very handy and allows a developer to get all the kinks of of the system while using quasi-cash, instead of the real stuff.

PayPal also allows you to redirect the buyer back to a specified URL after the transaction has been completed. It is pretty easy to set up. Furthermore, there is a handy Payment Data Transfer mechanism that PayPal has put into place. With just a little help from the LWP::UserAgent and Crypt::SSLeay perl modules, I am able to retrieve a whole bunch of information about the buyer's transaction such as the payment type, payment status, payment date, payment gross, and payment fee after the buyer has been redirected back to my script.

Contact me for source code if interested.

:: Posted by rus on Wed, 14 Mar 2007 11:19 pm
:: Filed under /tech



         

March 2007
Sun Mon Tue Wed Thu Fri Sat
       
14

About
The Daily Biff
Rus Berrett's weblog

Contact Me
Email: rus at berrett dot org
AIM: biffordtdavis

Search 'The Daily Biff'



Proclamations
Exaggerated opinions of my own importance. Proceed with caution.

Buy Me Stuff
My wish list is my gift to you (yes, shameless, I know).

Subscribe
Subscribe to a syndicated feed of my weblog, brought to you by the wonders of RSS.

Categories
You can isolate posts by category using the following links.

  •   ·x10 (1)
  •     ·2005 (23)
  •     ·2006 (18)
  •     ·2007 (17)
  •     ·2008 (27)
  •     ·kids (1)
  •     ·meat (14)
  •     ·cola (2)
  •     ·milk (2)
  •     ·meat (1)
  •     ·utah (5)

Archives
Past entries are available for review.

Blogroll
These are a few blogs run by my esteemed friends and colleagues. My personal comments about the blog (and its author) can be accessed by clicking on the "wtf?" graphic to the immediate right of each entry (wtf = "What the flip?" as in "What the flip is grandma doing at the sand dunes?").

Family

What the flip is "Yatyk's Musings"?  And who the flip is Mark Berrett?

Friends

What the flip is "The Improvist"?  And who the flip is Dan Brian?
What the flip is "The Borel-Cantelli Lemma"?  And who the flip is Norm Jones?


    
 
    Valid CSS!

Valid HTML 4.01 Transitional

Powered by blosxom