Rev CGI Post

Andre Garzia andre at andregarzia.com
Mon Aug 6 10:38:01 EDT 2007


Friends,
If you guys are using CGIs for that, usually you can use shell() to call
cURL or wget. I think it's a nice way to talk with PayPal IPN

Cheers
andre


On 8/6/07, Robert Mann <robmann at gp-racing.com> wrote:
>
> I am having a similar problem with paypal, trying to use the script that
> Thomas McCarthy put together myPDT.cgi which was a great help to get me
> going.
>
> on startup
>   --StartCGI
>   --read info
>   put $QUERY_STRING into theBuffer
>   put theBuffer into theTermsArray --keep the original info.
>   put "myLibUrl.rev" into theStack
>   start using stack theStack
>   put the result into tresult
>   put tresult & "result"
>   split theTermsArray by "&" and "="
>   put theTermsArray["tx"] into tvalue
>   put "cmd=_notify-synch" into tnotify
>   put "&tx=" & tvalue into tToken
>     ---NEED YOUR IDENTITY TOKEN---
>   put "&at=identity_token" into myID
>    put tnotify & tToken & myID into x
>   post x to url "http://www.sandbox.paypal.com/us/cgi-bin/webscr"  -->TAKE
> OUT "SANDBOX" LATER
>
>
> this is called from paypal using the following
> http://www.gp-racing.com/cgi-bin/myPDT.cgi
>
> theBuffer seams to be empty should there be something after the myPDT.cgi
> like
> http://www.gp-racing.com/cgi-bin/myPDT.cgi?theBuffer
> Isn't this how theBuffer would be filled? Just not sure what to put there?
>
> The postback is always "Fail"
>
> Thanks
> Rob
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



More information about the use-livecode mailing list