Re: PayPal IPN LC - and Beef Stew

2012-05-08 Thread Ben Rubinstein
On 04/05/2012 04:05, J. Landman Gay wrote: On 5/3/12 9:41 PM, Mark Wieder wrote: See bug reports 3157 and 8305. :) I'd seen Jeanne's but I didn't know you'd put your foot in too. I'd like to see the above list added as well but I'm afraid RR would take away our access. Be careful what you

Re: PayPal IPN LC - Scripts are posted

2012-05-08 Thread Peter M. Brigham, MD
On May 7, 2012, at 12:18 PM, Bob Sneidar wrote: If a developer doesn't descends into a crazed sputtering rage from time to time, they probably should not be developing software. ;-) PROGRAM, tr.v. To engage in a pastime similar to banging one's head against a wall, but with fewer

Re: PayPal IPN LC - Scripts are posted

2012-05-07 Thread Bob Sneidar
If a developer doesn't descends into a crazed sputtering rage from time to time, they probably should not be developing software. ;-) Bob On May 4, 2012, at 7:58 PM, J. Landman Gay wrote: 7. This list is the absolute best of all lists, and LiveCoders are the most generous people anywhere,

Re: PayPal IPN LC - Scripts are posted

2012-05-06 Thread J. Landman Gay
I wrote: I learned a lot from this exercise: 1. PayPal does not charge a fee on five-cent sales. Just to set the record straight, it isn't technically true. I just looked at my PayPal account and saw that I'd misunderstood the data that was coming into my CGI. PayPal took your whole five

Re: PayPal IPN LC

2012-05-06 Thread J. Landman Gay
Listers, There was an error in the PayPal IPN script I posted on my web page. Some HTML entities were missing, so the script got garbled when viewed on the web site. If you try to run it, LiveCode will abort and throw a server error. The problem is in the .zip file I provided too, since I

Re: PayPal IPN LC - Scripts are posted

2012-05-05 Thread Pierre Sahores
How to thank you for this inestimable contribution without considering the human generosity behind your gesture which goes far beyond the workplace. I'm glad LiveCode is the incredible community that we know because all those human being shared values ​​that civilized creation software and

PayPal IPN LC - and Beef Stew

2012-05-05 Thread Francis Nugent Dixon
Hi from Beautiful Brittany, Jacqueline wrote : 2. At least two people prefer that their stew contain beer. Not beer, Jacqueline, Guinness (or at least stout) In the true spirit of sharing on this forum, although it may be considered not very LiveCode, I pass on a recipe for Stew made with

Re: PayPal IPN LC - and Beef Stew

2012-05-05 Thread J. Landman Gay
On 5/5/12 6:39 AM, Francis Nugent Dixon wrote: Hi from Beautiful Brittany, Jacqueline wrote : 2. At least two people prefer that their stew contain beer. Not beer, Jacqueline, Guinness (or at least stout) I don't drink beer, and I guess it shows. To me, stout and beer and ale are all

Re: PayPal IPN LC - Scripts are posted

2012-05-05 Thread dirk cleenwerck
I don't get to answer very often on this list, so I'm glad my contribution provided the last puzzle piece. Thanks for the write up. I bookmarked it in case I ever need it. Greetz from Belgium Dirk Cleenwerck On Sat, May 5, 2012 at 4:58 AM, J. Landman Gay jac...@hyperactivesw.comwrote: I've

Re: PayPal IPN LC - and Beef Stew

2012-05-04 Thread Francis Nugent Dixon
Hi Jacqueline, Worked like a charm. I didn't need a recipe for beef stew, 'cos we have Irish Stew, made with Guinness. But it was fun to give you a hand ! When downloading the pdf file, I noticed a %20 (a blank) in the pdf file name Was that deliberate ? Of course, it worked anyway. I am now

Re: PayPal IPN LC - and Beef Stew

2012-05-04 Thread J. Landman Gay
On 5/4/12 6:12 AM, Francis Nugent Dixon wrote: Hi Jacqueline, Worked like a charm. I didn't need a recipe for beef stew, 'cos we have Irish Stew, made with Guinness. You can put Guiness into the stew. I don't know how it would taste, but you can do it. :) When downloading the pdf file, I

Re: PayPal IPN LC - Scripts are posted

2012-05-04 Thread J. Landman Gay
I've posted an article on my website that explains how I made PayPal IPN work with LiveCode CGIs: http://www.hyperactivesw.com/cgipaypal/index.html It's also linked at my main Resources page with everything else. I could not have done this without all your help, so I'm giving back what's

Re: PayPal IPN LC

2012-05-03 Thread Richard Miller
I got my IPN solution working by using a simple PHP script which takes the IPN data and stores it out to a file with a unique filename. A LC script then scans for these files and does what it needs to with the data. This was only working in the simulator until I discovered that the GoDaddy

Re: PayPal IPN LC - and Beef Stew

2012-05-03 Thread J. Landman Gay
I've set up a test page with my working PayPal button and LiveCode CGI script. I'm hoping some of you will help me test it. I'd especially like at least one non-US person to try it, because I want to know how the currency conversion works. PayPal suggests we check the amount paid to make sure

Re: PayPal IPN LC - and Beef Stew (OT)

2012-05-03 Thread Marian Petrides, M.D.
Do you really think a mere recipe is enough? After looking at the photo, it seems we should hold out for a sample of the real thing. ;-) just kidding, of course On May 3, 2012, at 12:49 PM, J. Landman Gay wrote: I've set up a test page with my working PayPal button and LiveCode CGI script.

Re: PayPal IPN LC - and Beef Stew

2012-05-03 Thread Scott Rossi
Was tempted to choose Bill Me Later -- extend payments over 6 months but wasn't sure if that would fly. Just received the download -- appeared to take about 15 min or so. Regards, Scott Rossi Creative Director Tactile Media, UX Design Recently, Jacque Landman Gay wrote: I've set up a test

Re: PayPal IPN LC - and Beef Stew (OT)

2012-05-03 Thread J. Landman Gay
On 5/3/12 1:07 PM, Marian Petrides, M.D. wrote: Do you really think a mere recipe is enough? After looking at the photo, it seems we should hold out for a sample of the real thing. ;-)just kidding, of course Well, not only that, you're a victim of bait and switch. That isn't even a picture of

Re: PayPal IPN LC - and Beef Stew

2012-05-03 Thread Scott Rossi
Recently, I wrote: Just received the download -- appeared to take about 15 min or so. By received the download I meant the download email, not the time required to download the PDF... Regards, Scott Rossi Creative Director Tactile Media, UX Design

Re: PayPal IPN LC - and Beef Stew

2012-05-03 Thread Marian Petrides, M.D.
Mine came a bit quicker--as in a minute or two after I finished paying via PayPal. Hope this helps you out, Jacque. On May 3, 2012, at 1:26 PM, Scott Rossi wrote: Recently, I wrote: Just received the download -- appeared to take about 15 min or so. By received the download I meant the

Re: PayPal IPN LC - and Beef Stew

2012-05-03 Thread J. Landman Gay
On 5/3/12 1:26 PM, Scott Rossi wrote: Recently, I wrote: Just received the download -- appeared to take about 15 min or so. By received the download I meant the download email, not the time required to download the PDF... I wondered. :) PayPal is sending me notifications a little late too,

Re: PayPal IPN LC - and Beef Stew

2012-05-03 Thread Devin Asay
And mine came almost immediately, too. Devin On May 3, 2012, at 12:30 PM, Marian Petrides, M.D. wrote: Mine came a bit quicker--as in a minute or two after I finished paying via PayPal. Hope this helps you out, Jacque. On May 3, 2012, at 1:26 PM, Scott Rossi wrote: Recently, I

Re: PayPal IPN LC - and Beef Stew

2012-05-03 Thread J. Landman Gay
On 5/3/12 1:30 PM, Marian Petrides, M.D. wrote: Mine came a bit quicker--as in a minute or two after I finished paying via PayPal. Hope this helps you out, Jacque. It does, and thank you so much. I've had a couple of non-US orders now too, and it looks like all currency is converted in the

Re: PayPal IPN LC - and Beef Stew

2012-05-03 Thread Keith Clarke
Hi Jaque, My download email came through immediately - UK, via a Google Apps address - if that is important(?) I was charged £0.04 at a 1:1.25 UKP:USD exchange rate. Good luck with the finishing touches. Best, Keith.. On 3 May 2012, at 19:48, J. Landman Gay wrote: On 5/3/12 1:30 PM, Marian

Re: PayPal IPN LC - and Beef Stew

2012-05-03 Thread Peter Haworth
Hi Jacque, Well I coudn't resist a good beef stew recipe so I went ahead and purchased even though I'm in the USA. The PayPal transaction email was timed at 11:53am (PDT) and your confirmation email had the same timestamp so no delay here. Pete lcSQL Software http://www.lcsql.com On Thu, May

Re: PayPal IPN LC - and Beef Stew

2012-05-03 Thread J. Landman Gay
On 5/3/12 2:09 PM, Keith Clarke wrote: Hi Jaque, My download email came through immediately - UK, via a Google Apps address - if that is important(?) I'm not sure why some mail is delayed. My logs show instant response, but sometimes my mail server gets slow. When Scott mentioned a delay I

Re: PayPal IPN LC - and Beef Stew

2012-05-03 Thread J. Landman Gay
On 5/3/12 2:36 PM, Peter Haworth wrote: Hi Jacque, Well I coudn't resist a good beef stew recipe so I went ahead and purchased even though I'm in the USA. I shouda charged ten cents. The PayPal transaction email was timed at 11:53am (PDT) and your confirmation email had the same timestamp

Re: PayPal IPN LC - and Beef Stew

2012-05-03 Thread Peter Haworth
I'm gonna try your recipe Jacque (even though it doesn't contain Guinness!) In the spirit of not measuring, I'd like to suggest the following new keywords in LC: - split tVar by whateverworks - if tvar IsSomethingCloseTo abc then - send mouseUp to button xyz AtSomePointInTime - get

Re: PayPal IPN LC - and Beef Stew

2012-05-03 Thread -=JB=-
I tested it from the Seattle/Tacoma area and it worked great. The email was sent back right away. -=JB=- On May 3, 2012, at 10:49 AM, J. Landman Gay wrote: I've set up a test page with my working PayPal button and LiveCode CGI script. I'm hoping some of you will help me test it. I'd

Re: PayPal IPN LC - and Beef Stew

2012-05-03 Thread Peter M. Brigham, MD
On May 3, 2012, at 6:28 PM, Peter Haworth wrote: - split tVar by whateverworks - if tvar IsSomethingCloseTo abc then - send mouseUp to button xyz AtSomePointInTime - get SomeSortOfOffset(tvar,tText) - put Optionally xyz into tVar 2 + 2 = 5, for sufficiently large values of 2.

Re: PayPal IPN LC - and Beef Stew

2012-05-03 Thread Mark Wieder
Pete- Thursday, May 3, 2012, 3:28:47 PM, you wrote: I'm gonna try your recipe Jacque (even though it doesn't contain Guinness!) In the spirit of not measuring, I'd like to suggest the following new keywords in LC: - split tVar by whateverworks - if tvar IsSomethingCloseTo abc then

Re: PayPal IPN LC - and Beef Stew

2012-05-03 Thread J. Landman Gay
On 5/3/12 9:41 PM, Mark Wieder wrote: Pete- Thursday, May 3, 2012, 3:28:47 PM, you wrote: I'm gonna try your recipe Jacque (even though it doesn't contain Guinness!) In the spirit of not measuring, I'd like to suggest the following new keywords in LC: - split tVar by whateverworks -

Re: PayPal IPN LC

2012-05-02 Thread dirk cleenwerck
Good morning, Does this help. http://oreilly.com/openbook/cgi/ch03_07.html Dirk Cleenwerck On Wed, May 2, 2012 at 6:25 AM, J. Landman Gay jac...@hyperactivesw.comwrote: On 5/1/12 8:55 PM, Andre Garzia wrote: Guys and Gals, You may want to check

PHP help (was PayPal IPN LC)

2012-05-02 Thread Richard Miller
Any ideas why this would not put this is just a test into the file dump.txt? PayPal is happy with the script. It indicates it has received the correct response when it calls this PHP script. The script is located in my Documents folder on my (dedicated OSX) server. I can't set that folder to

Re: PayPal IPN LC

2012-05-02 Thread Bob Sneidar
When you guys get through all this, it would be great if you could share all you've learned in one place, maybe even write up an article for the Rev newsletter. It's great the way this community solves problems cooperatively. It restores my admittedly shaken faith in the human race. :-) Bob

Re: PayPal IPN LC

2012-05-02 Thread J. Landman Gay
On 5/2/12 11:07 AM, Bob Sneidar wrote: When you guys get through all this, it would be great if you could share all you've learned in one place, maybe even write up an article for the Rev newsletter. It's great the way this community solves problems cooperatively. It restores my admittedly

Re: PayPal IPN LC

2012-05-02 Thread Klaus on-rev
Hi Jaqueline, Am 02.05.2012 um 18:42 schrieb J. Landman Gay: On 5/2/12 11:07 AM, Bob Sneidar wrote: When you guys get through all this, it would be great if you could share all you've learned in one place, maybe even write up an article for the Rev newsletter. It's great the way this

Re: PayPal IPN LC

2012-05-02 Thread J. Landman Gay
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

Re: PayPal IPN LC

2012-05-02 Thread Bob Sneidar
Ouch! On May 2, 2012, at 9:42 AM, J. Landman Gay wrote: On 5/2/12 11:07 AM, Bob Sneidar wrote: When you guys get through all this, it would be great if you could share all you've learned in one place, maybe even write up an article for the Rev newsletter. It's great the way this community

Re: PayPal IPN LC

2012-05-02 Thread Richard Gaskin
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

Re: PayPal IPN LC

2012-05-02 Thread J. Landman Gay
On 5/2/12 12:30 PM, Richard Gaskin wrote: Ah, so it was a header issue after all. You're justified if you want to gloat now. I'm sorry I sniped at you. If it helps, you weren't the only one. The Husband hid in the basement. -- Jacqueline Landman Gay | jac...@hyperactivesw.com

Re: PayPal IPN LC

2012-05-02 Thread J. Landman Gay
On 5/2/12 11:58 AM, Bob Sneidar wrote: Ouch! :) I'll post something once I'm sure the real page works. It's been a long, hard journey. I've decided I hate web servers. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software |

Re: PayPal IPN LC

2012-05-02 Thread Richard Gaskin
J. Landman Gay wrote: On 5/2/12 12:30 PM, Richard Gaskin wrote: Ah, so it was a header issue after all. You're justified if you want to gloat now. I'm sorry I sniped at you. If it helps, you weren't the only one. The Husband hid in the basement. I had the luxury of being half a continent

Re: PayPal IPN LC

2012-05-02 Thread Bob Sneidar
It's awesome you got through this. FTR these are some of the hardest kinds of problems to solve. Your pain will be other's gain. :-) Bob On May 2, 2012, at 10:38 AM, J. Landman Gay wrote: On 5/2/12 11:58 AM, Bob Sneidar wrote: Ouch! :) I'll post something once I'm sure the real page

Re: PayPal IPN LC

2012-05-02 Thread J. Landman Gay
On 5/2/12 12:39 PM, Richard Gaskin wrote: J. Landman Gay wrote: On 5/2/12 12:30 PM, Richard Gaskin wrote: Ah, so it was a header issue after all. You're justified if you want to gloat now. I'm sorry I sniped at you. If it helps, you weren't the only one. The Husband hid in the basement. I

Re: PayPal IPN LC

2012-05-02 Thread Peter Haworth
Congrats on working through all this. Slightly off topic but related. I assume you're doing this to send out license codes or something similar. Some time ago, I had a need to automatically react to someone purchasing one or more mp3 music files. This is way before I even knew about LiveCode

Re: PayPal IPN LC

2012-05-02 Thread J. Landman Gay
On 5/2/12 12:56 PM, Peter Haworth wrote: Congrats on working through all this. Slightly off topic but related. I assume you're doing this to send out license codes or something similar. Right, I'm trying to automate AirLaunch sales from my web site. Zygodact makes the serial keys and I've

Re: PayPal IPN LC

2012-05-02 Thread Peter Haworth
Maybe there's a Thunderbird plugin that would help. The other way might be if there's some way of saving filtered messages to a text file in a specific folder, then setting the folder options to run a script each time a new message turns up. When I get some time, I plan to look into that for use

PayPal IPN LC

2012-05-01 Thread Richard Miller
Totally stuck on using PayPal's IPN process with LC. It doesn't appear that there is any way to have PayPal send the IPN data to a LC cgi script. Doesn't look like IPN supports cgi. I'd be very happy to have a simple PHP listener script on my server which accepts the initial IPN data and

Re: PayPal IPN LC

2012-05-01 Thread J. Landman Gay
On 5/1/12 9:36 AM, Richard Miller wrote: Totally stuck on using PayPal's IPN process with LC. It doesn't appear that there is any way to have PayPal send the IPN data to a LC cgi script. Doesn't look like IPN supports cgi. It does, I've got the data coming in. The only issue I have is that

Re: PayPal IPN LC

2012-05-01 Thread Richard Miller
Great! That seems to work. Thank you. Richard On 5/1/2012 12:04 PM, J. Landman Gay wrote: On 5/1/12 9:36 AM, Richard Miller wrote: Totally stuck on using PayPal's IPN process with LC. It doesn't appear that there is any way to have PayPal send the IPN data to a LC cgi script. Doesn't look

Re: PayPal IPN LC

2012-05-01 Thread Pierre Sahores
Jacque, Did you try what occurs in modifying your code in the following way : on startup if $REQUEST_METHOD = POST then -- this is the only kind PayPal sends start using stack liburl read from stdin until empty put it into tOrderData if tOrderData is in url (file:paypalLog.txt

Re: PayPal IPN LC

2012-05-01 Thread J. Landman Gay
On 5/1/12 2:02 PM, Pierre Sahores wrote: The Paypal API should wait for a receipt confirmation response from your script before it quits. Thanks Pierre. I added put ok but it still times out. I don't know what Paypal expects back. The sample PHP scripts I looked at don't respond with

Re: PayPal IPN LC

2012-05-01 Thread J. Landman Gay
On 5/1/12 3:18 PM, J. Landman Gay wrote: I have tried: 1. Looping through the opensockets and closing each one -- server 500 error BTW, I'm pretty sure this isn't really a script error, I think libURL is exiting to top. Exiting a cgi script throws a signal 11 error. Unfortunately Paypal

Re: PayPal IPN LC

2012-05-01 Thread Terry Judd
On 02/05/2012, at 6:19 AM, J. Landman Gay jac...@hyperactivesw.com wrote: On 5/1/12 2:02 PM, Pierre Sahores wrote: The Paypal API should wait for a receipt confirmation response from your script before it quits. Thanks Pierre. I added put ok but it still times out. I don't know what

Re: PayPal IPN LC

2012-05-01 Thread J. Landman Gay
On 5/1/12 4:38 PM, Terry Judd wrote: I agree - I've had a few problems with the POST command over https as well (nothing to do with Paypal). Maybe I should try curl. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software |

Re: PayPal IPN LC

2012-05-01 Thread Richard Miller
Jacqueline, Have you tried the cgi script with the actual IPN system... not the sandbox? It doesn't appear to work. Richard On 5/1/2012 5:50 PM, J. Landman Gay wrote: On 5/1/12 4:38 PM, Terry Judd wrote: I agree - I've had a few problems with the POST command over https as well (nothing

Re: PayPal IPN LC

2012-05-01 Thread J. Landman Gay
On 5/1/12 4:58 PM, Richard Miller wrote: Jacqueline, Have you tried the cgi script with the actual IPN system... not the sandbox? It doesn't appear to work. No, not yet. Are you logging? Do you get any error messages? -- Jacqueline Landman Gay | jac...@hyperactivesw.com

Re: PayPal IPN LC

2012-05-01 Thread Richard Miller
I'd be happy to use a PHP listener script to simply capture the IPN data, respond to PayPal, and store the data to a file, so I can get at it through LC. The following script is the basic PHP script PayPal recommends. The sandbox test environment is happy with it. But the line of code I added

Re: PayPal IPN LC

2012-05-01 Thread Monte Goulding
Hi Richard A couple of points: 1. you would want to do stuff with the data after you work out it's verified. 2. rather than dump to a file why not actually call your lc script with any parameters you need from paypal (Actually that might get Jacqueline over her hurdles too) Cheers -- M E R

Re: PayPal IPN LC

2012-05-01 Thread Richard Miller
Hi Monte, This is all territory I have no experience with. Regarding your point #1, I had that line of code there just to see if I could get the data written out... which I can't. I suspect the problem is with permissions. If I use this address for the IPN sender (inside my cgi-bin... where

Re: PayPal IPN LC

2012-05-01 Thread Monte Goulding
Regarding point #2, do you mean to call the cgi script from inside the PHP listener? If so, what does that line of code look like? It's the same as the callback to paypal but with your url. -- M E R Goulding Software development services Bespoke application development for vertical

Re: PayPal IPN LC

2012-05-01 Thread Richard Miller
Monte, Do you mean like the line shown below (==)? If so, it doesn't seem to trigger my cgi script. Again, this PHP stuff is Greek to me. Thanks. Richard // PHP 4.1 // read the post from PayPal system and add 'cmd' $req = 'cmd=_notify-validate'; file_put_contents(dump.txt, print_r($_POST,

Re: PayPal IPN LC

2012-05-01 Thread Andre Garzia
Guys and Gals, You may want to check https://www.paypal-community.com/t5/About-Settings/Paypal-repeats-identical-IPN-posts/td-p/465559 Cheers andre On Tue, May 1, 2012 at 10:21 PM, Richard Miller w...@together.net wrote: Monte, Do you mean like the line shown below (==)? If so, it doesn't

Re: PayPal IPN LC

2012-05-01 Thread J. Landman Gay
On 5/1/12 7:47 PM, Richard Miller wrote: Hi Monte, This is all territory I have no experience with. Regarding your point #1, I had that line of code there just to see if I could get the data written out... which I can't. I suspect the problem is with permissions. If I use this address for the

Re: PayPal IPN LC

2012-05-01 Thread Andre Garzia
Folks, I found some old IPN code I had. It was a part of a online shop software. There are two useful files: ipn.inc - https://gist.github.com/2573122 ipn.irev - https://gist.github.com/2573132 The code above serves as reference material, I am not advocating that the code above is safe or that

Re: PayPal IPN LC

2012-05-01 Thread J. Landman Gay
On 5/1/12 9:35 PM, Andre Garzia wrote: If I remember correctly, you need to output something from your IPN handler. Doing the whole POST stuff is not enough. You need to output something in the CGI or Apache will think it is a 500 error. You can't have 200 OK with no content, so just put ok.

Re: PayPal IPN LC

2012-05-01 Thread J. Landman Gay
On 5/1/12 8:55 PM, Andre Garzia wrote: Guys and Gals, You may want to check https://www.paypal-community.com/t5/About-Settings/Paypal-repeats-identical-IPN-posts/td-p/465559 That's it! That's what's happening. I don't know how you found that post, I've been crawling those forums for days and