Rev CGI Post

Robert Mann robmann at gp-racing.com
Mon Aug 6 09:01:04 EDT 2007


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




More information about the use-livecode mailing list