PayPal IPN & LC
Richard Gaskin
ambassador at fourthworld.com
Wed May 2 13:30:15 EDT 2012
J. Landman Gay wrote:
> 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!!
Ah, so it was a header issue after all.
--
Richard Gaskin
Fourth World
LiveCode training and consulting: http://www.fourthworld.com
Webzine for LiveCode developers: http://www.LiveCodeJournal.com
LiveCode Journal blog: http://LiveCodejournal.com/blog.irv
More information about the use-livecode
mailing list