-- HikaShop version -- : 4.2.3
-- Joomla version -- : 3.9.15
-- PHP version -- : 7.3
-- Browser(s) name and version -- : N/A
Hi, I am testing the PayPal plugin with Sandbox and a multilanguage site. Cancel and Return URL are left blank in the configuration to use the default values.
While everything is working when the user navigates in the default language (English), nothing is working when using the secondary language (Italian):
- the cancel order URL goes back to a non existing link giving 404 (in particular the cancel URL is index.php?option=com_hikashop&ctrl=order&task=cancel_order&order_id=8&Itemid=998 that is automatically redirected to /negozio/cassa/checkout/step-0 that is not existing
- the return URL goes to a thank page in English and also the contained link to the order goes to a non existing page
- no confirmation is acquired from Hika though the transaction completes successfully in PayPal
Then I investigated the problems and found a partial fix: in the PayPal plugin, in the paypal.php the return and cancel_return URL must be appended with current language. So adding "&lang=it" everything works! Is it a fix you can confirm and please add soon to be able to use Paypal in secondary language?
But the blocking problem remains for notification: also adding the lang tag to the notification URL does not solve in secondary language: while PayPal transaction completes OK and the Hika payment logging traces the response
03.01.20 11:57:45 - paypal
VERIFIED
03.01.20 11:57:45 - paypal
PayPal transaction id: 1VM977490S2299108
the order remains in "created" state and infact in the order history just one line (creation) is reported, no confirmation step.
Any clue on this?
thanks a lot
Giuse