[nycphp-talk] PHP and PayPal
Phil Powell
soazine at erols.com
Wed Aug 6 18:48:18 EDT 2003
I am still not having any luck getting it to work on my site so that someone
could donate via PayPal... here is the source code I'm using, maybe that's
the problem:
<form name=paypalForm action=https://www.paypal.com/cgi/webscr method=post>
...
<!-- PAYPAL DONATION BUTTON FORM -->
<input type=hidden name=cmd value=\"p/ema/index-outside\">
<input type=hidden name=receiver_email value=\"$myEmail\">
<input type=hidden name=currency_code value=USD>
<input type=submit name=submit value=\"Donate to Väl via PayPal\"
class=yellow_button
onClick=sendPayPalDonation()>
<input type=hidden name=refURL value=\"[
if {![regexp {menubar\.cgi} $env(REQUEST_URI)]} {
set x $env(REQUEST_URI)
} else {
set x {NON_CGI_REQUEST_URI}; # PUT UP A FLAG TO USE TO REPLACE THIS
CONSTANT
}
]\">
</form>
Phil
----- Original Message -----
From: "Dan Horning" <dan at mx2pro.com>
To: "'NYPHP Talk'" <talk at lists.nyphp.org>
Sent: Tuesday, August 05, 2003 5:13 PM
Subject: RE: [nycphp-talk] PHP and PayPal
> You don't need to use IPN. I have a site that uses PayPal to purchase
> gift certificates. On the page where the "Paypal" button is, I store the
> variables I will need in Session variable and set the "Paypal Success
> URL" to my success PHP page. When Paypal invokes my page, I get
> everything I need from the Session variables. Works very well.
>
> Ken Robinson
>
>
> Show me your site ... And I could steal a ton from you... Unless you
> check the paypal IPN .. You don't really have any real way to verify
> that an order has been aproved or declined...
>
> Make sence everyone..???
> (unless you want to check every single order personally....)
> -dan
>
> _______________________________________________
> talk mailing list
> talk at lists.nyphp.org
> http://lists.nyphp.org/mailman/listinfo/talk
More information about the talk
mailing list