I just moved from a different ISP. I had a PayPal IPN script working fine there, and have made no changes, but now it is not working.
I tested with the IPN test script at eliteweaver.com, and it is telling me my IPN script is not replying.
I have asked support, and they say Msxml is installed on the server. IPN seems to fail at this location:
’ post back to PayPal system to validate
set objHttp = Server.CreateObject(“Msxml2.ServerXMLHTTP”)
'objHttp.open “POST”, “https://www.paypal.com/cgi-bin/webscr”, false 'LIVE
objHttp.open “POST”, “http://www.eliteweaver.co.uk/testing/ipntest.php” 'Testing
objHttp.setRequestHeader “Content-type”, “application/x-www-form-urlencoded”
objHttp.Send str
Does anyone know a simple way to test if Mxxml is set up properly?
Down at the end, he claims to have solved it by having his ISP open Port 88. Could someone at Jodo let me know if it’s possible to get this port opened?
Snooper, unfortunately, my script gives no visual feedback, but I did access it directly to make sure it’s not giving any asp errors, and that looks fine.
All indications are that it’s not posting a reply to the IPN system at PayPal. I checked, and I do receive the initial form post from them, which Msxml should then post right back. The script logic then writes to my database if it hears back from PayPal, or writes an error if it doesn’t get a response 200.
his script is almost exactly the same as mine. The error seems to be happening here:
IF (objHttp.status <> 200 ) THEN
error handling code below this line is being triggered.
There are a few IPN testing tools out there, and they tell me that my script is not replying. One possibility is that if IPN doesn’t receive exactly the identical string posted back, it will respond with “INVALID”. Could it be that the version of Msxml on the Jodo server is encoding the string differently?
Would you be able to share the relevant portions of your code, so I could compare to mine? Obviously obscure any proprietary stuff. You can PM me if that works better.
This is now getting quite serious, as PayPal just keeps posting repeatedly to my script when it doesn’t get any response.
I am attaching my script here (hope it works, the uploade wasnt working a while back)
I used the same one you mentioned i think, but i have added in a bunch of email commands to debunk the responses. you’ll need to plug your database string and email function in to this page.
One clue has been suggested to me about why my IPN script is suddenly failing. I have another thread going about SMTP authentication, and that now seems to be working. However, there doesn’t seem to be any way to do this with Msxml. Is it possible my Msxml post is simply not going out? Here’s the only lines in the code that deal with this: