Mader, Bob on Fri, 6 Jul 2001 09:20:06 -0400


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] how to transact credit cards and PayPal on a web site?


I put together a Paypal payment form that uses JavaScript to synthesize the
correct URL based on a user's selections. A good solution if you don't have
access to server side programming (i.e., cgi, php, etc.). The tricky part
was getting the dollar amount formatted right... PayPal will not accept
"2.5" for $2.50... and there's no sprintf in JavaScript...

http://www.eecis.udel.edu/~dra/e610.html

Enjoy... -Bob

-----Original Message-----
Date: Thu, 5 Jul 2001 09:24:54 -0400
From: Jeff Abrahamson <jeff@purple.com>
To: plug@lists.phillylinux.org
Subject: Re: [PLUG] how to transact credit cards and PayPal on a web site?
Reply-To: plug@lists.phillylinux.org

On Tue, Jul 03, 2001 at 04:51:07PM -0500, Pete Foley wrote:
> Anyway, PayPal is easy, you just need to either redirect the user to
> PayPal with some query string params, or you could just do an http
> post to them.  They support both.  The downside is that the user can
> then change the price in the URL or the form, so you need to save
> the total on your end too and not rely 100% on PayPal.  Also, their
> system is not really complete.  For example, they let you redirect
> to a URL after the transaction is done.  But, it goes to that URL if
> the sale passed OR failed (say the user canceled the order).  So
> there is no way to know what really went on at PayPal.  I emailed
> them about this, and they said that they were making an API, but I
> have not heard anything new since then.

They currently allow for two URL's, one for success, one for cancel. I
don't know where tried and failed anyway falls.

-- 
 Jeff

 Jeff Abrahamson  <http://www.purple.com/jeff/>




______________________________________________________________________
Philadelphia Linux Users Group       -      http://www.phillylinux.org
Announcements-http://lists.phillylinux.org/mail/listinfo/plug-announce
General Discussion  -  http://lists.phillylinux.org/mail/listinfo/plug