diff --git a/src/adyenofficial.php b/src/adyenofficial.php index 56946c73..b8f03672 100755 --- a/src/adyenofficial.php +++ b/src/adyenofficial.php @@ -46,7 +46,7 @@ public function __construct() { $this->name = 'adyenofficial'; $this->tab = 'payments_gateways'; - $this->version = '5.2.0'; + $this->version = '5.2.1'; $this->author = $this->l('Adyen'); $this->need_instance = 0; diff --git a/src/classes/Services/CheckoutHandler.php b/src/classes/Services/CheckoutHandler.php index dbd69edf..aeb90b38 100644 --- a/src/classes/Services/CheckoutHandler.php +++ b/src/classes/Services/CheckoutHandler.php @@ -123,7 +123,7 @@ public static function getCarrierId(PrestaCart $cart): int { if (Tools::getValue('controller') === 'paymentconfigexpresscheckout' || Tools::getValue('controller') === 'paymentproduct' || - Tools::getValue('controller') === 'payment' + (Tools::getValue('controller') === 'payment' && !$cart->id_carrier) ) { //Get default carrier for current shop $carrierId = (int)Configuration::get('PS_CARRIER_DEFAULT', null, null, $cart->id_shop);