Jump to content

Paypay IPN not getting triggered. Round 2


dhurley

Recommended Posts

Hi,

 

My shop is not triggering the PayPal IPN, so the order on presta is not getting finishing.

 

We are using paypalusa 1.3.1 with ibndawood's $_POST cleaning patch. 

 

Here is a lot of information:

http://www.prestashop.com/forums/topic/282164-paypal-payment-but-no-orders/

 

I was trying to find what page paypal hits when they send out their IPN ping.

 

So we ran a of grep for PayPal's ipn ip addresses located here https://ppmts.custhelp.com/app/answers/detail/a_id/92
 
$ /var/log/apache2# grep -ir '173.0.81.1' ./www.oursuperbestsite.com-access_ssl_log 
 
173.0.81.1 - - [07/Jan/2014:03:38:23 +0000] "POST /module/paypalusa/validation?pps=1 HTTP/1.0" 200 5010
173.0.81.1 - - [07/Jan/2014:03:51:25 +0000] "POST /module/paypalusa/validation?pps=1 HTTP/1.0" 200 6690
173.0.81.1 - - [07/Jan/2014:04:51:47 +0000] "POST /ext/modules/payment/paypal/ipn.php HTTP/1.0" 404 38907
173.0.81.1 - - [07/Jan/2014:05:23:42 +0000] "POST /module/paypalusa/validation?pps=1 HTTP/1.0" 200 5010
173.0.81.1 - - [07/Jan/2014:16:14:28 +0000] "POST /ext/modules/payment/paypal/ipn.php HTTP/1.0" 404 38907
 
If you see the 3rd line down it switches to a different module in the /ext/ directory.
Does the paypalusa module rely on another paypal module?
 
Has anybody seen this? 

 

Link to comment
Share on other sites

HI Ibrahim,

 

Put in your fix and it looks like it worked!

 

Now after the purchase, items were still in the cart, and the order is not shown. But after we refresh the order is there and the cart is empty. So we are much better off than we were. We will watch the behavior to see if we can get a better idea of what is happening. 

 

Thanks again!

 

If you need to fix your paypal checkout hire Ibrahim.

Link to comment
Share on other sites

Hello Darren,

 

Here is what I posted in other thread regarding the order not appearing until the page is being refreshed.

 

====================================================================================

 

This is what happens when a customer checks out using paypal :

 

  • Your website passes on the details about the order to paypal.
  • Your Customer pays at paypal.
  • Paypal posts back to your website with the transaction details.
  • Now your website again posts back to Paypal to make verify that it was indeed Paypal that posted the transaction details.
  • After verify that it was indeed paypal, an order is created.

Now step 3 is quicker it happens as soon as you make the payment. Step 4 is your website verifying paypal transaction details with paypal. For this purpose the paypal module uses cURL (a PHP library). I run my websites on a dedicated server and my cURL requests are always faster. So an order is created whenever the user is back to the website. Try here : http://demo.prestast...prestashop1.5.6

 

But I have come across your scenario and there could be lot of reasons :

 

  • Your web server connection is slow ( Note your webserver connection is different from your connection).
  • cURL issues could be problems in resolving the DNS, could be because of connection. You can debug your cURL transfers using curl_getinfo. That would give you more information like what is the time taken for lookup , etc. (http://curl.haxx.se/...sy_getinfo.html)

==============================================================================================

 

and thank you for your referral :)

Edited by ibndawood (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...