wizardsandwars Posted January 1, 2003 Share Posted January 1, 2003 The IPN notification seem to be not so instant. In fact, sometimes the IPN seems to be takeing 10 minutes or longer, and sometimes, I'm not getting it at all. Anone else having similar problems? ------------------------------------------------------------------------------------------------------------------------- NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit. If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help. Link to comment Share on other sites More sharing options...
dreamscape Posted January 1, 2003 Share Posted January 1, 2003 hmm... I haven't had any experience with the paypal IPN for OSC since my site isn't live yet, but I've got another site that I sell eBooks where I implemented IPN so that the books are available to users immediately after purchase... sometimes the email will take awhile to arrive (but thats server not paypal), but the IPN/user data is always written to the database immediately though... The only thing necessary for evil to flourish is for good men to do nothing - Edmund Burke Link to comment Share on other sites More sharing options...
wizardsandwars Posted January 1, 2003 Author Share Posted January 1, 2003 The customers information is written to the database before the customer is even directed tothe PayPal database, so this may not be an indication that you are receiving the IPN notification from PayPal in a timely fashion. The PayPal IPN notification that you have received funds from PayPal has always been almost instantanious, however, lately, it has taken sever minutes. When you receive the IPN notification, the customers order status will be upgraded to "Pending" rather than "PayPal Processing" ------------------------------------------------------------------------------------------------------------------------- NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit. If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help. Link to comment Share on other sites More sharing options...
dreamscape Posted January 1, 2003 Share Posted January 1, 2003 ah... yes I often have the email from paypal take several minutes... but like I said with my other site (not OSC, but a custom ASP site that I wrote the IPN functions for), the IPN, transaction, and verification numbers are always written to the database immediately after payment... guess Paypals email server gets backed up sometimes. The only thing necessary for evil to flourish is for good men to do nothing - Edmund Burke Link to comment Share on other sites More sharing options...
dreamscape Posted January 1, 2003 Share Posted January 1, 2003 unless you don't mean the email... unless you meant that the IPN verify is taking several minutes... in which case I am stumped too... because according to the IPN specs and protocols, it should immediately return validation... and if it didn't I don't see how it could take several minutes, since the request from the IPN verify function (on your server) to Paypal would time out if it didn't recieve a response within about 60 seconds (or at least I think it would, or should)... unless it is taking Paypal several minutes to send the information to the verify function on your server... but then again that doesn't make sense, because the information is sent at the time of submitting payment to Paypal (or should be according to the IPN protocol). The only thing necessary for evil to flourish is for good men to do nothing - Edmund Burke Link to comment Share on other sites More sharing options...
dreamscape Posted January 1, 2003 Share Posted January 1, 2003 I dunno if this makes a difference or not, but Paypal strongly reccomends that you (actually they say you MUST) do the following 4 things after you recieve the IPN from them: 1. Perform the "Notification Validation" 2. Confirm that "payment_status" is "Completed" 3. Check "txn_id" against prior transactions to prevent duplicate processing 4. Confirm that "receiver_email" is an email address registered in your PayPal account The Paypal IPN contrib for OSC swtiches steps 2 and 3 around (I don't know how much of a difference that makes, if any) and does not even do step 4 (not that I could see anyways)... The only thing necessary for evil to flourish is for good men to do nothing - Edmund Burke Link to comment Share on other sites More sharing options...
dreamscape Posted January 1, 2003 Share Posted January 1, 2003 a little blurb from a FAQ # paypalipn.com (not affiliated with paypal): Why does paypal keep hitting my IPN script? If you fail to send a valid response to paypal's IPN notification, paypal will retry your script occasionally to make sure that you received the notice. There is a blurb at paypal that describes this a little more: PayPal's IPN system re-posts to your script after 1 second, then 2 seconds, 4 seconds, 8 seconds, etc., (up to a 4 hour duration), until we receive a basic HTTP "200 OK" response from your web server or 1.5 days have passed since the initial post. I dunno if this helps you or not The only thing necessary for evil to flourish is for good men to do nothing - Edmund Burke Link to comment Share on other sites More sharing options...
wizardsandwars Posted January 1, 2003 Author Share Posted January 1, 2003 unless you don't mean the email... unless you meant that the IPN verify is taking several minutes... in which case I am stumped too... because according to the IPN specs and protocols, it should immediately return validation... and if it didn't I don't see how it could take several minutes, since the request from the IPN verify function (on your server) to Paypal would time out if it didn't recieve a response within about 60 seconds (or at least I think it would, or should)... unless it is taking Paypal several minutes to send the information to the verify function on your server... but then again that doesn't make sense, because the information is sent at the time of submitting payment to Paypal (or should be according to the IPN protocol). This is exactly what I meant. For instance I receive an email form paypal saying that I hav received payment. I look in the Admin of OSC, and I see that the order status is still "PayPal Pending". I check "Who's online" and I see that PayPal has not yet called the "notify.php" script. This is the script that the IPN is supposed to call. After an indescriminant amount of time, I will see the "notify.php" call comming from PayPal, and the order gets updated to "Pending" and I get the OSC email indicating that an order has been placed. In the past the notify.php script was always called immediatly after someone made a payment. Now there seems to be a delay, sometimes a lenghthy one. I dunno if this makes a difference or not, but Paypal strongly reccomends that you (actually they say you MUST) do the following 4 things after you recieve the IPN from them: I'm positive that the PayPal IPN contribution by Pablo takes all of this into account. And it has worked for me for several months. Why the delay now? If you fail to send a valid response to paypal's IPN notification, paypal will retry your script occasionally to make sure that you received the notice. There is a blurb at paypal that describes this a little more: PayPal's IPN system re-posts to your script after 1 second, then 2 seconds, 4 seconds, 8 seconds, etc., (up to a 4 hour duration), until we receive a basic HTTP "200 OK" response from your web server or 1.5 days have passed since the initial post. It is not the re-send that is being delayed. It is the original call to the notify.php script. ------------------------------------------------------------------------------------------------------------------------- NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit. If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help. Link to comment Share on other sites More sharing options...
dreamscape Posted January 1, 2003 Share Posted January 1, 2003 I would contact Paypal... if you are not seeing the 1st call to the notify script until several minutes later, something is very wrong (with paypal I suspect)... paypal should be continually hitting the notify script (in increasing intervals from 1sec, 2sec, 4 sec, 8sec, etc.. up to 4hrs, then every 4 hrs until 1.5days has passed with no response) until it revieces a response from your server... if the 1st request from paypal isn't until minutes later, I would be writing paypal and making sure they are aware of the problem. The only thing necessary for evil to flourish is for good men to do nothing - Edmund Burke Link to comment Share on other sites More sharing options...
wizardsandwars Posted January 1, 2003 Author Share Posted January 1, 2003 Looking through previous threads, I see that at least one other person has been experiencing the same problem. The notify.php script must be working properly because I never receive a 2nd, 3rd or so forth, call from palpal to this script. IOt is assuradly the first call that is delayed. Unfortunatly, I NEVER get a customer service response from PayPal. Maybe Patrick from PayPal is around. He always seems to appear antime someone says that PayPal sucks. Well, "PAYPAL SUCKS". j/k, Patrick, just tryong to get your attention, ------------------------------------------------------------------------------------------------------------------------- NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit. If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help. Link to comment Share on other sites More sharing options...
pbreit Posted January 2, 2003 Share Posted January 2, 2003 There were intermittent IPN delays last week. IPNs normally go out within 3 seconds. Patrick Breitenbach Link to comment Share on other sites More sharing options...
dreamscape Posted January 2, 2003 Share Posted January 2, 2003 Maybe Patrick from PayPal is around. He always seems to appear antime someone says that PayPal sucks. look here he is, right on time too :) The only thing necessary for evil to flourish is for good men to do nothing - Edmund Burke Link to comment Share on other sites More sharing options...
wizardsandwars Posted January 2, 2003 Author Share Posted January 2, 2003 look here he is, right on time too ROFLMAO Serioulsly, Patrick, Thanks. I think that PayPal is swell. ------------------------------------------------------------------------------------------------------------------------- NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit. If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.