YetAnotherForum
Welcome Guest Search | Active Topics | Log In | Register

URGENT!!!!! IPN is hitting my page TWICE!!! Options
JoJoH
#1 Posted : Saturday, March 08, 2003 9:58:11 PM
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!
Sponsor  
 
jkonicky
#2 Posted : Sunday, March 09, 2003 2:29:23 PM
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
DSD_David
#3 Posted : Sunday, March 09, 2003 4:07:20 PM
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
JoJoH
#4 Posted : Wednesday, March 12, 2003 4:08:55 PM
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
paypal_pb
#5 Posted : Wednesday, March 12, 2003 4:22:10 PM
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
cotton9
#6 Posted : Friday, April 04, 2003 7:55:33 PM
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?
paypal_pb
#7 Posted : Friday, April 04, 2003 11:31:29 PM
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
cotton9
#8 Posted : Saturday, April 05, 2003 4:46:32 PM
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?
cotton9
#9 Posted : Tuesday, April 08, 2003 11:05:02 PM
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.
paypal_pb
#10 Posted : Wednesday, April 09, 2003 12:17:57 AM
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
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAFVision Theme by Jaben Cargman (Tiny Gecko)
Powered by YAF | YAF © 2003-2009, Yet Another Forum.NET
This page was generated in 0.424 seconds.