Page 1 of 1

revserver scripting PayPal IPN

Posted: Sun May 15, 2011 4:21 pm
by jharris
I am trying to use PayPal IPN on my website with revServer scripting. I can't seem to figure out a way to loop through the POST variables sent by PayPal so they can be sent back for the confirmation.

I was trying to use something like:

Code: Select all

     repeat for each item as tVar in $_POST
          -- Do Stuff
     end repeat
I've not had any luck, I was wondering if anyone might have any suggestions or experience with this.

Thanks,
jharris

Re: revserver scripting PayPal IPN

Posted: Sun May 15, 2011 5:27 pm
by SparkOut
Would this give any better result?

Code: Select all

repeat for each line tKey in the keys of $_POST
  put $_POST[tKey] into tVar
  --do stuff with tVar
end repeat
(untested but hopeful)

Re: revserver scripting PayPal IPN

Posted: Sun May 15, 2011 9:23 pm
by jharris
Thanks SparkOut,

That appears to be exactly what I needed. How simple is that. Being a beginner with LiveCode I was stumbling all over.

Sure do appreciate the help.

jharris

Re: revserver scripting PayPal IPN

Posted: Mon May 16, 2011 6:15 am
by bangkok

Re: revserver scripting PayPal IPN

Posted: Mon May 16, 2011 11:34 am
by jharris
Thanks bangkok,

I will read that document when I get a chance (leaving for work). Looks like it may have some usefull information. I have been using POST to URL to send the string back to PayPal, but I can't seem to get a response back
from PayPal. I will try to search over the mailing list and see if I can find any information there. I can't seem to find much here on the forum. I can get it to work using PHP, but I wanted to use iRev.

Thanks for the info.

jharris