PayPal IPN not working

rrhandle8
rrhandle8 used Ask the Experts™
on

I logged into my Sandbox account, Clicked on "Test Tools", then clicked on "Instant Payment Notification (IPN) Simulator."

I entered the address of my IPN Handler URL, and clicked "Send IPN".  The IPN was successfully sent.

BUT, my IPN listerner writes the following to the log file:
"9/3/2011 7:23:47 PM: Error in IPNHandler: amount = ""

IPN code is attached



 IPNHandler.aspx.vb
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Manoj PatilSr. Software Engineer

Commented:
Hello rrhandle8,

Payal IPN works in a background mode and it will take some time to update. It will update directly from Paypal Server.
You just need to set the IPNHandler Page URL in PayPal Account. And just write the Database Update function in the successfull result condition

Author

Commented:
All that is in place techChallenger1, except for the database.  I can run orders through my sandbox, and the IPN get notified, but always returns "INVALID".
In the IPN test screen what transaction type did you choose?  I assume you chose Cart checkout and updated all of the variables.

Check your variable names.  For example, the amount field coming back from PayPal is mc_gross and not amount.   You may be looking for a variable name in the POST array that is not there.

Your script looks like it is looking for amount in the custom field.  Not sure why but make sure you are putting data into the custom field when you send the test message.  

Also, you may want to do a dump of the POST array to a log file or an email message at the top of your script to see what you are actually getting from the IPN message.

Author

Commented:
Didn't exactly answer the question

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial