php - Slow Paypal IPN by 3 seconds -


i have paypal ipn system in place. payment system works well, takes t required amount of money fine, ipn slightly off.

i've done timestamps on time ipn connects site , time load /shop/thanks page - , here data:

ipn: [1416406186 // 14:09:46 19-11-14] papypal.php runtime: 1 seconds. (start time: 1416406185 / end time: 1416406186)

/shop/thanks error: [1416406183 // 14:09:43 19-11-14] /shop/thanks error - not display thank message.

three seconds. if go straight through paypal process website 3 seconds before paypal updates me via ipn. if go through correct thank you page.

i haven't encountered problem before. can sort out? runtime of paypal.php script 1 second, it's not taking long update database.

you can't. ipn supposed asynchronous. supposed "thank payment, notify when payment complete."

but why?

because let's decide pay echeque, ie. directly bank account through paypal. echeques may take six ten days clear.

ipn may stand "instant payment notification", "instant" part refers when get payment, not when user sends you.

now, being said, might able adjust ipn script accept "pending" status payments, , act accordingly. however, not idea because may mislead user thinking payment has completed, when in fact may cancelled or deemed invalid later. that's question ux. then, you'd still have kind of delay while ipn system processes notification.


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -