PayPal IPN & LC
J. Landman Gay
jacque at hyperactivesw.com
Wed May 2 12:50:52 EDT 2012
On 5/2/12 4:54 AM, dirk cleenwerck wrote:
> Good morning,
>
> Does this help.
>
> http://oreilly.com/openbook/cgi/ch03_07.html
Yes! Yes it does!! Excitement, happiness, joy joy!
In the simulator at least, this WORKS!!!:
on startup
read from stdin until empty
put it into tOrderData
LOG the long time && "Received:" && tOrderData
put "cmd=_notify-validate&" before tOrderData -- required response
put "https://www.sandbox.paypal.com/cgi-bin/webscr" into tPPAddr
put "curl --data" &"e& tOrderData "e&& tPPAddr into tPostCmd
put shell(tPostCmd) into tCurlRslt
put last word of tCurlRslt into tResponse -- "VERIFIED"
put "Status: 200 OK" &cr&cr -- > Magic line!
put "ok"
LOG the long time && "Response:" && tResponse
end startup
Hahahahahahaha!!
I'm afraid to try the real button...
Thank you.
--
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
More information about the use-livecode
mailing list