revserver scripting PayPal IPN

Are you using LiveCode to create server scripts or CGIs?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
jharris
Posts: 84
Joined: Wed Jan 26, 2011 3:28 am
Location: Arkansas - USA

revserver scripting PayPal IPN

Post by jharris » Sun May 15, 2011 4:21 pm

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
Operating System: macOS Monterey Version 12.5
LiveCode Version: 9.6.8

SparkOut
Posts: 2857
Joined: Sun Sep 23, 2007 4:58 pm

Re: revserver scripting PayPal IPN

Post by SparkOut » Sun May 15, 2011 5:27 pm

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)

jharris
Posts: 84
Joined: Wed Jan 26, 2011 3:28 am
Location: Arkansas - USA

Re: revserver scripting PayPal IPN

Post by jharris » Sun May 15, 2011 9:23 pm

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
Operating System: macOS Monterey Version 12.5
LiveCode Version: 9.6.8

bangkok
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 937
Joined: Fri Aug 15, 2008 7:15 am

Re: revserver scripting PayPal IPN

Post by bangkok » Mon May 16, 2011 6:15 am


jharris
Posts: 84
Joined: Wed Jan 26, 2011 3:28 am
Location: Arkansas - USA

Re: revserver scripting PayPal IPN

Post by jharris » Mon May 16, 2011 11:34 am

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
Operating System: macOS Monterey Version 12.5
LiveCode Version: 9.6.8

Post Reply

Return to “CGIs and the Server”