PayPal payments not set to completed

  • Posts: 19
  • Thank you received: 1
11 years 11 months ago #80718

Hello i am testing with PayPal sandbox and i can't get the payment to set order to completed.
the payment log file is empty but in access_log i can see that the Paypal is returning the confirmation.
here are the log lines from httpd access_log :
- - [06/Dec/2012:16:37:36 +0200] "POST /index.php/he/b2bshop/checkout/step/step-1 HTTP/1.1" 200 25221 " www.XXXXX.co.il/index.php/he/b2bshop/checkout " "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.95 Safari/537.11"
173.0.82.126 - - [06/Dec/2012:16:38:18 +0200] "POST /index.php?option=com_hikashop&ctrl=checkout&task=notify¬if_payment=paypal&tmpl=component&lang=he&Itemid=349 HTTP/1.0" 303 - "-" "-"
173.0.82.126 - - [06/Dec/2012:16:38:19 +0200] "GET /index.php/he/2012-11-05-11-51-10?view=login HTTP/1.0" 200 17660 "-" "-"



what am i doing wrong :(
thank you,
Ilan

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
11 years 11 months ago #80795

Hi,

Your log tells it all:
173.0.82.126 - - [06/Dec/2012:16:38:18 +0200] "POST /index.php?option=com_hikashop&ctrl=checkout&task=notify¬if_payment=paypal&tmpl=component&lang=he&Itemid=349 HTTP/1.0" 303 - "-" "-"

The notification of paypal is redirected. And if you look at the next line you can see :
173.0.82.126 - - [06/Dec/2012:16:38:19 +0200] "GET /index.php/he/2012-11-05-11-51-10?view=login HTTP/1.0" 200 17660 "-" "-"

Which means that it is redirected to the login page.

So apparently, your website shop menu is only accessible to logged in users or something like that. So when PayPal tries to notify it, Joomla tells it that it has to login first and thus the notification doesn't reach hikashop and the order is not confirmed.

Please Log in or Create an account to join the conversation.

  • Posts: 19
  • Thank you received: 1
11 years 11 months ago #81015

Hi,
This is correct.
The shop should be available only to registered users, but is there a way to have the confirmation open to public access so it would be confirmed by PayPal?

Please Log in or Create an account to join the conversation.

  • Posts: 19
  • Thank you received: 1
11 years 11 months ago #81030

Hi,
I did another test with the HikaShop accessed to public and i can see now in access_log the following:
173.0.82.126 - - [09/Dec/2012:14:35:56 +0200] "POST /index.php?option=com_hikashop&ctrl=checkout&task=notify¬if_payment=paypal&tmpl=component&lang=he&Itemid=349 HTTP/1.0" 200 2786 "-" "-"

and there is no redirect to login, but in the error_log i have the following line:
[Sun Dec 09 14:36:03 2012] [error] [client 173.0.82.126] PHP Notice: ob_end_clean(): failed to delete buffer. No buffer to delete. in XXXXXXX/libraries/joomla/application/component/helper.php on line 385

so the payment is not set to complete.
Payment log file - remains empty

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
11 years 11 months ago #81339

That new log says that the paypal request was accepted. The notice is not an issue and can be ignored. Did you do your test with the debug mode of the paypal plugin turned on ? Otherwise, it's normal that the payment log stays empty. Also, make sure that the the payment log file is writable via FTP (you can set its permissions to 777 to make sure of that).


To have the notifications accessible to the public will the shop only accessible to registered users, you can create a public menu specific to the checkout of hikashop and choose it in the "force a menu on checkout" option of the configuration. That way PayPal will use that menu for the notifications.

Please Log in or Create an account to join the conversation.

Time to create page: 0.067 seconds
Powered by Kunena Forum