diff --git a/src/classes/Services/CheckoutHandler.php b/src/classes/Services/CheckoutHandler.php index 79a2454b..0aa13ce7 100644 --- a/src/classes/Services/CheckoutHandler.php +++ b/src/classes/Services/CheckoutHandler.php @@ -21,6 +21,7 @@ use Context; use Country as PrestaCountry; use Currency as PrestaCurrency; +use Customer as PrestaCustomer; use Module; use PrestaShopDatabaseException; use PrestaShopException; @@ -47,6 +48,7 @@ public static function getPaymentCheckoutConfig(PrestaCart $cart) $currency = new PrestaCurrency($cart->id_currency); $addressInvoice = new PrestaAddress($cart->id_address_invoice); $country = new PrestaCountry($addressInvoice->id_country); + $customer = new PrestaCustomer($cart->id_customer); $shop = \Shop::getShop(\Context::getContext()->shop->id); return CheckoutAPI::get()->checkoutConfig($cart->id_shop)->getPaymentCheckoutConfig( @@ -59,7 +61,8 @@ public static function getPaymentCheckoutConfig(PrestaCart $cart) ), $country->iso_code ? Country::fromIsoCode($country->iso_code) : null, Context::getContext()->getTranslator()->getLocale(), - $shop['domain'] . '_' . \Context::getContext()->shop->id . '_' . $cart->id_customer + $shop['domain'] . '_' . \Context::getContext()->shop->id . '_' . $cart->id_customer, + $customer->email ) ); } diff --git a/src/composer.lock b/src/composer.lock index 2360f725..299bc2f7 100755 --- a/src/composer.lock +++ b/src/composer.lock @@ -12,12 +12,12 @@ "source": { "type": "git", "url": "git@github.com:Adyen/adyen-php-plugin-core.git", - "reference": "6eb976cf64c742a47d0e7be4a23fe745e1a5c443" + "reference": "6a40b764322b65ec6c5a01570045d27eb361b8e6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Adyen/adyen-php-plugin-core/zipball/6eb976cf64c742a47d0e7be4a23fe745e1a5c443", - "reference": "6eb976cf64c742a47d0e7be4a23fe745e1a5c443", + "url": "https://api.github.com/repos/Adyen/adyen-php-plugin-core/zipball/6a40b764322b65ec6c5a01570045d27eb361b8e6", + "reference": "6a40b764322b65ec6c5a01570045d27eb361b8e6", "shasum": "" }, "require": { @@ -48,7 +48,7 @@ "proprietary" ], "description": "Core Adyen integration library", - "time": "2024-04-16T09:51:15+00:00" + "time": "2024-04-16T16:12:49+00:00" }, { "name": "adyen/php-webhook-module",