Solved

PayPal IPN not working

Posted on 2011-09-03
4
492 Views
Last Modified: 2012-05-12

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
0
Comment
Question by:rrhandle8
  • 2
4 Comments
 
LVL 19

Expert Comment

by:Manoj Patil
ID: 36480455
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
0
 

Author Comment

by:rrhandle8
ID: 36480787
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".
0
 
LVL 14

Accepted Solution

by:
Scott Madeira earned 500 total points
ID: 36484667
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.

0
 

Author Closing Comment

by:rrhandle8
ID: 36934884
Didn't exactly answer the question
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SEO, SSL, and Canonical URL Tags 5 84
Interview questions for support of a legacy ASP.NET site 4 39
Connection String 16 43
designing in object programming 12 42
Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now