|
|
|
Rank: Starting Member
Groups: Registered
Joined: 3/5/2003 Posts: 8 Location: ,
|
Please help, IPN is hitting my page twice!!! That means if my customer purchased only 1 item, it would seems that he had purchased 2 items because IPN is hitting my page twice! Please help, how could I fix this??? Please Help! URGENT!
|
|
|
|
|
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 3/5/2003 Posts: 9 Location: ,
|
Check the transaction id number. If the transaction did indeed come in more than once then you can disregard it the second, third... times.
Jeff
jkonicky
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 11/30/2002 Posts: 125 Location: ,
|
It seemz that you are not returning the IPN correctly. It should stop when your server post back to the PayPal server a '200 ok'.
So it seems that your script is not sending back the 200 ok back to PayPal.
-David
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 3/5/2003 Posts: 8 Location: ,
|
Thanks all for your answers, but how do a sent Paypal a 200 ok response? Please advice.
Thanks in advance
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 9/16/2002 Posts: 2,960 Location: ,
|
Normally this is handled automatically by the web server if the script simply processes without erroring. Patrick Breitenbach PayPal, Inc. Dev Net: https://www.paypal.com/pdn
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 3/29/2003 Posts: 4 Location: ,
|
I am having the same problem. Checking the txn_id of course compensates for the problem, but why is it happening? Is it possible that paypal resends the notification one time before the server posts back the "200 ok", eventhough it actually received the first notification? It would then update the database twice because the resending interval is shorter than my server's postback lag time. If this is the case, is there a way to either speed up the server's postback or lengthen the 1 second resend interval?
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 9/16/2002 Posts: 2,960 Location: ,
|
It's very unlikely. Our system re-posts 10 seconds only after timing out or receiving a 500 Error response from your server. Patrick Breitenbach PayPal, Inc. Dev Net: https://www.paypal.com/pdn
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 3/29/2003 Posts: 4 Location: ,
|
I also noticed that if I include an error in the IPN page, I receive the payment, fix the error, and the record will post correctly in about a minute. I guess that the now corrected page catches the latest repost from Paypal. But why in this case does it enter the record just once, when it enters it more than once (usually twice) if the IPN script is errorless to begin with?
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 3/29/2003 Posts: 4 Location: ,
|
AH-HA! I finally figured out what the problem was. My IPN page was ok, but the Form page with the "Pay Now" button on it labeled my IPN page as a return URL. Therefore, it was running the IPN once and then going to the return URL to run it again. Such a simple thing.
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 9/16/2002 Posts: 2,960 Location: ,
|
Incidentally, this can be an effective way to test because you can program your IPN script to print error messages to the browser screen. Patrick Breitenbach PayPal, Inc. Dev Net: https://www.paypal.com/pdn
|
|
|
|
Guest
|
YAFVision Theme by Jaben Cargman (Tiny Gecko)Powered by YAF |
YAF © 2003-2009, Yet Another Forum.NETThis page was generated in 0.424 seconds.