Open MageGaHell opened 7 years ago
Any idea ??? I'm interested too !
Problem seems to be that Paypal's delivery module search method doesn't filter correctly on module's type. It returns the first module he encounters, whatever it is a delivery module or not. In your case, it returns "Carousel", in my case, it returns "Cheque" ou "Front".
$deliveryModule = ModuleQuery::create()->filterByActivate(1)->findOne();
I suggest this modification, line 386 of PayPal/Controller/PayPalResponseController.php :
/* @var \Thelia\Model\Module $deliveryModule / /$deliveryModule = ModuleQuery::create()->filterByActivate(1)->findOne();/ $order = $this->getSession()->getOrder(); if (null !== $order) { $deliveryModule = $order->getModuleRelatedByDeliveryModuleId(); }
Could you please make a PR ?
Hello, i've juts installed this PayPal module (v3.0.4), by .zip, on a Thelia v2.3.3 and i'm trying to make it work on sandbox mode.
After login in my sandbox client PayPal account and select the paiement from PayPal Balance, i've this error:
URL : /index_dev.php/module/paypal/invoice/express/checkout/ok/9050?paymentId=PAY-25396479JU317294DLC7JEJQ&token=EC-44147866VW5330942&PayerID=J8W83ZED6ECZN
In the module log, i've have: 03-07-2017 10:58:04 Cannot commit because a nested transaction was rolled back critical_500 03-07-2017 10:58:03 Module "Carousel" is not a payment module critical_500 03-07-2017 10:58:01 Express checkout begin with cart 9050 critical_100
Weird. Why it check the "Carousel" Module ?
Any idea for making PayPal work ?