From 68981b82c5b948acfd09f243107b1f9d389b35c7 Mon Sep 17 00:00:00 2001 From: Arnaud Savoye Date: Tue, 21 May 2024 15:06:06 +0200 Subject: [PATCH 1/5] CHECMAG2003-232 Update Ideal code for new SDK --- Model/Methods/AlternativePaymentMethod.php | 2 +- composer.json | 2 +- .../templates/payment/apm/ideal.phtml | 56 ++++++++++--------- 3 files changed, 32 insertions(+), 28 deletions(-) diff --git a/Model/Methods/AlternativePaymentMethod.php b/Model/Methods/AlternativePaymentMethod.php index 105ff96a..231fd6b6 100755 --- a/Model/Methods/AlternativePaymentMethod.php +++ b/Model/Methods/AlternativePaymentMethod.php @@ -711,10 +711,10 @@ public function ideal(array $data) { if ($this->apiHandler->isPreviousMode()) { $source = new PreviousRequestIdealSource(); + $source->bic = $data['bic']; } else { $source = new RequestIdealSource(); } - $source->bic = $data['bic']; $source->description = $data['description']; $locale = explode('_', $this->shopperHandler->getCustomerLocale('nl_NL') ?? ''); $source->language = $locale[0]; diff --git a/composer.json b/composer.json index 1c23f663..7f30a392 100755 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "checkoutcom/magento2", "description": "Checkout.com Payment Gateway for Magento 2", "require": { - "checkout/checkout-sdk-php": "3.0.21", + "checkout/checkout-sdk-php": "3.2.0", "php": "~7.4.0||~8.1.0||~8.2.0", "magento/framework": ">=100.0.1" }, diff --git a/view/frontend/templates/payment/apm/ideal.phtml b/view/frontend/templates/payment/apm/ideal.phtml index 5ecb1462..829e0751 100755 --- a/view/frontend/templates/payment/apm/ideal.phtml +++ b/view/frontend/templates/payment/apm/ideal.phtml @@ -24,13 +24,15 @@
-
- - -
+ getData('service_previous_mode')): ?> +
+ + +
+
@@ -38,24 +40,26 @@

- + +
From 678f3d17ce240ab392c45cb66c28d18703f239bf Mon Sep 17 00:00:00 2001 From: Antoine FONTAINE Date: Thu, 23 May 2024 08:44:33 +0200 Subject: [PATCH 2/5] CHECMAG2003-233: set current user email before placing order --- .../js/view/payment/method-renderer/checkoutcom_apple_pay.js | 2 ++ .../js/view/payment/method-renderer/checkoutcom_card_payment.js | 2 ++ .../js/view/payment/method-renderer/checkoutcom_google_pay.js | 2 ++ .../web/js/view/payment/method-renderer/checkoutcom_vault.js | 2 ++ 4 files changed, 8 insertions(+) diff --git a/view/frontend/web/js/view/payment/method-renderer/checkoutcom_apple_pay.js b/view/frontend/web/js/view/payment/method-renderer/checkoutcom_apple_pay.js index 1c21c044..89699286 100755 --- a/view/frontend/web/js/view/payment/method-renderer/checkoutcom_apple_pay.js +++ b/view/frontend/web/js/view/payment/method-renderer/checkoutcom_apple_pay.js @@ -232,6 +232,8 @@ define( let self = this; if (Utilities.methodIsSelected(METHOD_ID)) { + Utilities.setEmail(); + // Validate T&C submission if (!AdditionalValidators.validate()) { return; diff --git a/view/frontend/web/js/view/payment/method-renderer/checkoutcom_card_payment.js b/view/frontend/web/js/view/payment/method-renderer/checkoutcom_card_payment.js index 9071f472..06cf5bd0 100755 --- a/view/frontend/web/js/view/payment/method-renderer/checkoutcom_card_payment.js +++ b/view/frontend/web/js/view/payment/method-renderer/checkoutcom_card_payment.js @@ -315,6 +315,8 @@ define( placeOrder: function () { if (Utilities.methodIsSelected(METHOD_ID)) { + Utilities.setEmail(); + // Validate the order placement if (AdditionalValidators.validate() && Frames.isCardValid()) { // Start the loader diff --git a/view/frontend/web/js/view/payment/method-renderer/checkoutcom_google_pay.js b/view/frontend/web/js/view/payment/method-renderer/checkoutcom_google_pay.js index d8f7861c..ebd7860e 100755 --- a/view/frontend/web/js/view/payment/method-renderer/checkoutcom_google_pay.js +++ b/view/frontend/web/js/view/payment/method-renderer/checkoutcom_google_pay.js @@ -95,6 +95,8 @@ define( $(self.button_target).click( function(evt) { if (Utilities.methodIsSelected(METHOD_ID)) { + Utilities.setEmail(); + // Validate T&C submission if (!AdditionalValidators.validate()) { return; diff --git a/view/frontend/web/js/view/payment/method-renderer/checkoutcom_vault.js b/view/frontend/web/js/view/payment/method-renderer/checkoutcom_vault.js index 54311ef5..350c360a 100755 --- a/view/frontend/web/js/view/payment/method-renderer/checkoutcom_vault.js +++ b/view/frontend/web/js/view/payment/method-renderer/checkoutcom_vault.js @@ -251,6 +251,8 @@ define( */ placeOrder: function () { if (Utilities.methodIsSelected(METHOD_ID)) { + Utilities.setEmail(); + if (AdditionalValidators.validate()) { // Prepare the payload var payload = { From 1983e7d796c9802faa08b20e54839293dca3e119 Mon Sep 17 00:00:00 2001 From: Antoine FONTAINE Date: Thu, 23 May 2024 14:51:41 +0200 Subject: [PATCH 3/5] CHECMAG2003-233: use step navigator on payemnt step in order to know if customer return to shipping step --- .../method-renderer/checkoutcom_apm.js | 1 + .../method-renderer/checkoutcom_apple_pay.js | 1 + .../checkoutcom_card_payment.js | 1 + .../method-renderer/checkoutcom_google_pay.js | 1 + .../method-renderer/checkoutcom_paypal.js | 2 + .../method-renderer/checkoutcom_vault.js | 1 + .../frontend/web/js/view/payment/utilities.js | 37 ++++++++++++++++++- 7 files changed, 43 insertions(+), 1 deletion(-) diff --git a/view/frontend/web/js/view/payment/method-renderer/checkoutcom_apm.js b/view/frontend/web/js/view/payment/method-renderer/checkoutcom_apm.js index 460008a1..c050e6bf 100755 --- a/view/frontend/web/js/view/payment/method-renderer/checkoutcom_apm.js +++ b/view/frontend/web/js/view/payment/method-renderer/checkoutcom_apm.js @@ -45,6 +45,7 @@ define( initialize: function () { this._super(); Utilities.loadCss('apm', 'apm'); + Utilities.initSubscribers(this); }, /** diff --git a/view/frontend/web/js/view/payment/method-renderer/checkoutcom_apple_pay.js b/view/frontend/web/js/view/payment/method-renderer/checkoutcom_apple_pay.js index 89699286..24b45e11 100755 --- a/view/frontend/web/js/view/payment/method-renderer/checkoutcom_apple_pay.js +++ b/view/frontend/web/js/view/payment/method-renderer/checkoutcom_apple_pay.js @@ -55,6 +55,7 @@ define( initialize: function () { this._super(); Utilities.setEmail(); + Utilities.initSubscribers(this); Utilities.loadCss('apple-pay', 'apple-pay'); this.launchApplePay(); diff --git a/view/frontend/web/js/view/payment/method-renderer/checkoutcom_card_payment.js b/view/frontend/web/js/view/payment/method-renderer/checkoutcom_card_payment.js index 06cf5bd0..9ffbacd3 100755 --- a/view/frontend/web/js/view/payment/method-renderer/checkoutcom_card_payment.js +++ b/view/frontend/web/js/view/payment/method-renderer/checkoutcom_card_payment.js @@ -60,6 +60,7 @@ define( this._super(); Utilities.loadCss(this.getFormLayout(), 'frames'); Utilities.setEmail(); + Utilities.initSubscribers(this); return this; }, diff --git a/view/frontend/web/js/view/payment/method-renderer/checkoutcom_google_pay.js b/view/frontend/web/js/view/payment/method-renderer/checkoutcom_google_pay.js index ebd7860e..48b86add 100755 --- a/view/frontend/web/js/view/payment/method-renderer/checkoutcom_google_pay.js +++ b/view/frontend/web/js/view/payment/method-renderer/checkoutcom_google_pay.js @@ -46,6 +46,7 @@ define( initialize: function() { this._super(); Utilities.setEmail(); + Utilities.initSubscribers(this); Utilities.loadCss('google-pay', 'google-pay'); return this; diff --git a/view/frontend/web/js/view/payment/method-renderer/checkoutcom_paypal.js b/view/frontend/web/js/view/payment/method-renderer/checkoutcom_paypal.js index ddbaa608..45508495 100755 --- a/view/frontend/web/js/view/payment/method-renderer/checkoutcom_paypal.js +++ b/view/frontend/web/js/view/payment/method-renderer/checkoutcom_paypal.js @@ -64,6 +64,8 @@ define([ }).catch((error) => { Utilities.log(error); }); + + Utilities.initSubscribers(this); }, /** diff --git a/view/frontend/web/js/view/payment/method-renderer/checkoutcom_vault.js b/view/frontend/web/js/view/payment/method-renderer/checkoutcom_vault.js index 350c360a..a70b46bd 100755 --- a/view/frontend/web/js/view/payment/method-renderer/checkoutcom_vault.js +++ b/view/frontend/web/js/view/payment/method-renderer/checkoutcom_vault.js @@ -44,6 +44,7 @@ define( initialize: function () { this._super(); Utilities.setEmail(); + Utilities.initSubscribers(this); Utilities.loadCss('vault', 'vault'); return this; diff --git a/view/frontend/web/js/view/payment/utilities.js b/view/frontend/web/js/view/payment/utilities.js index a03d453f..6a0ea1b3 100755 --- a/view/frontend/web/js/view/payment/utilities.js +++ b/view/frontend/web/js/view/payment/utilities.js @@ -24,15 +24,19 @@ define( 'Magento_Checkout/js/model/full-screen-loader', 'Magento_Customer/js/model/customer', 'mage/translate', + 'Magento_Checkout/js/model/step-navigator', + 'Magento_Checkout/js/action/set-payment-information', 'mage/cookies' ], - function ($, Config, Quote, CheckoutData, Url, RedirectOnSuccessAction, FullScreenLoader, Customer, __) { + function ($, Config, Quote, CheckoutData, Url, RedirectOnSuccessAction, FullScreenLoader, Customer, __, StepNavigator, setPaymentInformationAction) { 'use strict'; const KEY_CONFIG = 'checkoutcom_configuration'; const KEY_DATA = 'checkoutcom_data'; + const PAYMENT_STEP_CODE = 'payment'; return { + /** * Gets a field value. * @@ -446,6 +450,37 @@ define( */ cleanCustomerShippingAddress: function() { CheckoutData.setNewCustomerShippingAddress(null); + }, + + /** + * Workaround to refresh payment method information when guest customer + * go back to shipping step & change his email address + * + * @param {UiClass} Component + * @public + */ + initSubscribers: function (Component) { + const code = Component.getCode(); + + StepNavigator.steps.subscribe((steps) => { + if (this.getCurrentCheckoutStep(steps) === PAYMENT_STEP_CODE && + this.methodIsSelected(code)) { + setPaymentInformationAction(Component.messageContainer, { + method: code + }); + } + }); + }, + + /** + * Return current checkout step code + * + * @param {Array} steps + * @return string + * @public + */ + getCurrentCheckoutStep: function (steps) { + return steps[StepNavigator.getActiveItemIndex()]['code']; } }; } From 0520cf3bd214f7059a65d0f0d72a7daee7e2448e Mon Sep 17 00:00:00 2001 From: Antoine FONTAINE Date: Mon, 27 May 2024 11:13:42 +0200 Subject: [PATCH 4/5] CHECMAG2003-233: create checkout utilities file in order use checkout data only in checkout page and not in minicart --- .../web/js/model/checkout-utilities.js | 59 +++++++++++++++++++ .../method-renderer/checkoutcom_apm.js | 5 +- .../method-renderer/checkoutcom_apple_pay.js | 4 +- .../checkoutcom_card_payment.js | 5 +- .../method-renderer/checkoutcom_google_pay.js | 5 +- .../method-renderer/checkoutcom_paypal.js | 5 +- .../method-renderer/checkoutcom_vault.js | 9 ++- .../frontend/web/js/view/payment/utilities.js | 38 +----------- 8 files changed, 80 insertions(+), 50 deletions(-) create mode 100644 view/frontend/web/js/model/checkout-utilities.js diff --git a/view/frontend/web/js/model/checkout-utilities.js b/view/frontend/web/js/model/checkout-utilities.js new file mode 100644 index 00000000..e929b396 --- /dev/null +++ b/view/frontend/web/js/model/checkout-utilities.js @@ -0,0 +1,59 @@ +/** + * Checkout.com + * Authorized and regulated as an electronic money institution + * by the UK Financial Conduct Authority (FCA) under number 900816. + * + * PHP version 7 + * + * @category Magento2 + * @package Checkout.com + * @author Platforms Development Team + * @copyright 2010-present Checkout.com + * @license https://opensource.org/licenses/mit-license.html MIT License + * @link https://docs.checkout.com/ + */ + +define([ + 'jquery', + 'CheckoutCom_Magento2/js/view/payment/utilities', + 'Magento_Checkout/js/model/step-navigator', + 'Magento_Checkout/js/action/set-payment-information' +], function ($, Utilities, StepNavigator, setPaymentInformationAction) { + 'use strict'; + + const PAYMENT_STEP_CODE = 'payment'; + + return { + + /** + * Workaround to refresh payment method information when guest customer + * go back to shipping step & change his email address + * + * @param {UiClass} Component + * @public + */ + initSubscribers: function (Component) { + const code = Component.getCode(); + + StepNavigator.steps.subscribe((steps) => { + if (this.getCurrentCheckoutStep(steps) === PAYMENT_STEP_CODE && + Utilities.methodIsSelected(code)) { + setPaymentInformationAction(Component.messageContainer, { + method: code + }); + } + }); + }, + + /** + * Return current checkout step code + * + * @param {Array} steps + * @return string + * @public + */ + getCurrentCheckoutStep: function (steps) { + return steps[StepNavigator.getActiveItemIndex()]['code']; + } + }; +}); diff --git a/view/frontend/web/js/view/payment/method-renderer/checkoutcom_apm.js b/view/frontend/web/js/view/payment/method-renderer/checkoutcom_apm.js index c050e6bf..5ff0a041 100755 --- a/view/frontend/web/js/view/payment/method-renderer/checkoutcom_apm.js +++ b/view/frontend/web/js/view/payment/method-renderer/checkoutcom_apm.js @@ -18,13 +18,14 @@ define( 'jquery', 'Magento_Checkout/js/view/payment/default', 'CheckoutCom_Magento2/js/view/payment/utilities', + 'CheckoutCom_Magento2/js/model/checkout-utilities', 'Magento_Checkout/js/model/full-screen-loader', 'Magento_Checkout/js/model/payment/additional-validators', 'Magento_Checkout/js/model/quote', 'mage/translate', 'jquery/ui' ], - function ($, Component, Utilities, FullScreenLoader, AdditionalValidators, Quote, __) { + function ($, Component, Utilities, CheckoutUtilities, FullScreenLoader, AdditionalValidators, Quote, __) { 'use strict'; window.checkoutConfig.reloadOnBillingAddress = true; @@ -45,7 +46,7 @@ define( initialize: function () { this._super(); Utilities.loadCss('apm', 'apm'); - Utilities.initSubscribers(this); + CheckoutUtilities.initSubscribers(this); }, /** diff --git a/view/frontend/web/js/view/payment/method-renderer/checkoutcom_apple_pay.js b/view/frontend/web/js/view/payment/method-renderer/checkoutcom_apple_pay.js index 24b45e11..08f7b431 100755 --- a/view/frontend/web/js/view/payment/method-renderer/checkoutcom_apple_pay.js +++ b/view/frontend/web/js/view/payment/method-renderer/checkoutcom_apple_pay.js @@ -19,6 +19,7 @@ define( 'ko', 'Magento_Checkout/js/view/payment/default', 'CheckoutCom_Magento2/js/view/payment/utilities', + 'CheckoutCom_Magento2/js/model/checkout-utilities', "CheckoutCom_Magento2/js/view/payment/applepay-utilities", 'Magento_Checkout/js/model/full-screen-loader', 'Magento_Checkout/js/model/payment/additional-validators', @@ -30,6 +31,7 @@ define( ko, Component, Utilities, + CheckoutUtilities, ApplePayUtilities, FullScreenLoader, AdditionalValidators, @@ -55,7 +57,7 @@ define( initialize: function () { this._super(); Utilities.setEmail(); - Utilities.initSubscribers(this); + CheckoutUtilities.initSubscribers(this); Utilities.loadCss('apple-pay', 'apple-pay'); this.launchApplePay(); diff --git a/view/frontend/web/js/view/payment/method-renderer/checkoutcom_card_payment.js b/view/frontend/web/js/view/payment/method-renderer/checkoutcom_card_payment.js index 9ffbacd3..0cc2f866 100755 --- a/view/frontend/web/js/view/payment/method-renderer/checkoutcom_card_payment.js +++ b/view/frontend/web/js/view/payment/method-renderer/checkoutcom_card_payment.js @@ -19,6 +19,7 @@ define( 'ko', 'Magento_Checkout/js/view/payment/default', 'CheckoutCom_Magento2/js/view/payment/utilities', + 'CheckoutCom_Magento2/js/model/checkout-utilities', 'CheckoutCom_Magento2/js/frames/multi', 'CheckoutCom_Magento2/js/frames/single', 'Magento_Checkout/js/model/payment/additional-validators', @@ -27,7 +28,7 @@ define( 'Magento_Checkout/js/model/full-screen-loader', 'framesjs' ], - function ($, ko, Component, Utilities, FramesMulti, FramesSingle, AdditionalValidators, Customer, Quote, FullScreenLoader) { + function ($, ko, Component, Utilities, CheckoutUtilities, FramesMulti, FramesSingle, AdditionalValidators, Customer, Quote, FullScreenLoader) { 'use strict'; window.checkoutConfig.reloadOnBillingAddress = true; const METHOD_ID = 'checkoutcom_card_payment'; @@ -60,7 +61,7 @@ define( this._super(); Utilities.loadCss(this.getFormLayout(), 'frames'); Utilities.setEmail(); - Utilities.initSubscribers(this); + CheckoutUtilities.initSubscribers(this); return this; }, diff --git a/view/frontend/web/js/view/payment/method-renderer/checkoutcom_google_pay.js b/view/frontend/web/js/view/payment/method-renderer/checkoutcom_google_pay.js index 48b86add..2669d1af 100755 --- a/view/frontend/web/js/view/payment/method-renderer/checkoutcom_google_pay.js +++ b/view/frontend/web/js/view/payment/method-renderer/checkoutcom_google_pay.js @@ -18,6 +18,7 @@ define( 'jquery', 'Magento_Checkout/js/view/payment/default', 'CheckoutCom_Magento2/js/view/payment/utilities', + 'CheckoutCom_Magento2/js/model/checkout-utilities', 'Magento_Checkout/js/model/full-screen-loader', 'Magento_Checkout/js/model/payment/additional-validators', 'Magento_Checkout/js/action/redirect-on-success', @@ -25,7 +26,7 @@ define( 'googlepayjs', ], function( - $, Component, Utilities, FullScreenLoader, AdditionalValidators, + $, Component, Utilities, ChekcoutUtilities, FullScreenLoader, AdditionalValidators, RedirectOnSuccessAction, __) { 'use strict'; window.checkoutConfig.reloadOnBillingAddress = true; @@ -46,7 +47,7 @@ define( initialize: function() { this._super(); Utilities.setEmail(); - Utilities.initSubscribers(this); + ChekcoutUtilities.initSubscribers(this); Utilities.loadCss('google-pay', 'google-pay'); return this; diff --git a/view/frontend/web/js/view/payment/method-renderer/checkoutcom_paypal.js b/view/frontend/web/js/view/payment/method-renderer/checkoutcom_paypal.js index 45508495..d5b64e46 100755 --- a/view/frontend/web/js/view/payment/method-renderer/checkoutcom_paypal.js +++ b/view/frontend/web/js/view/payment/method-renderer/checkoutcom_paypal.js @@ -18,13 +18,14 @@ define([ 'knockout', 'Magento_Checkout/js/view/payment/default', 'CheckoutCom_Magento2/js/view/payment/utilities', + 'CheckoutCom_Magento2/js/model/checkout-utilities', 'CheckoutCom_Magento2/js/view/payment/paypal-utilities', 'Magento_Checkout/js/model/full-screen-loader', 'Magento_Checkout/js/model/payment/additional-validators', 'Magento_Checkout/js/model/quote', 'mage/translate', 'mage/url', -], function ($, ko, Component, Utilities, PaypalUtilities, FullScreenLoader, AdditionalValidators, Quote, __, Url) { +], function ($, ko, Component, Utilities, CheckoutUtilities, PaypalUtilities, FullScreenLoader, AdditionalValidators, Quote, __, Url) { 'use strict'; window.checkoutConfig.reloadOnBillingAddress = true; @@ -65,7 +66,7 @@ define([ Utilities.log(error); }); - Utilities.initSubscribers(this); + CheckoutUtilities.initSubscribers(this); }, /** diff --git a/view/frontend/web/js/view/payment/method-renderer/checkoutcom_vault.js b/view/frontend/web/js/view/payment/method-renderer/checkoutcom_vault.js index a70b46bd..2385c70a 100755 --- a/view/frontend/web/js/view/payment/method-renderer/checkoutcom_vault.js +++ b/view/frontend/web/js/view/payment/method-renderer/checkoutcom_vault.js @@ -13,16 +13,15 @@ * @link https://docs.checkout.com/ */ -define( - [ +define([ 'jquery', 'Magento_Checkout/js/view/payment/default', 'CheckoutCom_Magento2/js/view/payment/utilities', + 'CheckoutCom_Magento2/js/model/checkout-utilities', 'Magento_Checkout/js/model/payment/additional-validators', 'Magento_Checkout/js/model/full-screen-loader', 'mage/translate' - ], - function ($, Component, Utilities, AdditionalValidators, FullScreenLoader, __) { + ], function ($, Component, Utilities, CheckoutUtilities, AdditionalValidators, FullScreenLoader, __) { 'use strict'; window.checkoutConfig.reloadOnBillingAddress = true; const METHOD_ID = 'checkoutcom_vault'; @@ -44,7 +43,7 @@ define( initialize: function () { this._super(); Utilities.setEmail(); - Utilities.initSubscribers(this); + CheckoutUtilities.initSubscribers(this); Utilities.loadCss('vault', 'vault'); return this; diff --git a/view/frontend/web/js/view/payment/utilities.js b/view/frontend/web/js/view/payment/utilities.js index 6a0ea1b3..5ffcfe19 100755 --- a/view/frontend/web/js/view/payment/utilities.js +++ b/view/frontend/web/js/view/payment/utilities.js @@ -24,16 +24,13 @@ define( 'Magento_Checkout/js/model/full-screen-loader', 'Magento_Customer/js/model/customer', 'mage/translate', - 'Magento_Checkout/js/model/step-navigator', - 'Magento_Checkout/js/action/set-payment-information', 'mage/cookies' ], - function ($, Config, Quote, CheckoutData, Url, RedirectOnSuccessAction, FullScreenLoader, Customer, __, StepNavigator, setPaymentInformationAction) { + function ($, Config, Quote, CheckoutData, Url, RedirectOnSuccessAction, FullScreenLoader, Customer, __) { 'use strict'; const KEY_CONFIG = 'checkoutcom_configuration'; const KEY_DATA = 'checkoutcom_data'; - const PAYMENT_STEP_CODE = 'payment'; return { @@ -402,7 +399,7 @@ define( methodIsSelected: function (idSelector) { var id = idSelector.replace('#', ''); var selected = CheckoutData.getSelectedPaymentMethod(); - return id == selected || selected == null; + return id === selected; }, /** @@ -451,37 +448,6 @@ define( cleanCustomerShippingAddress: function() { CheckoutData.setNewCustomerShippingAddress(null); }, - - /** - * Workaround to refresh payment method information when guest customer - * go back to shipping step & change his email address - * - * @param {UiClass} Component - * @public - */ - initSubscribers: function (Component) { - const code = Component.getCode(); - - StepNavigator.steps.subscribe((steps) => { - if (this.getCurrentCheckoutStep(steps) === PAYMENT_STEP_CODE && - this.methodIsSelected(code)) { - setPaymentInformationAction(Component.messageContainer, { - method: code - }); - } - }); - }, - - /** - * Return current checkout step code - * - * @param {Array} steps - * @return string - * @public - */ - getCurrentCheckoutStep: function (steps) { - return steps[StepNavigator.getActiveItemIndex()]['code']; - } }; } ); From 7f2ee0ac47aebbbba0b36fdbecc6fa0c2a8f08ce Mon Sep 17 00:00:00 2001 From: Benjamin Houillon Date: Wed, 5 Jun 2024 10:16:10 +0200 Subject: [PATCH 5/5] Bump composer version --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 7f30a392..cfe2fd99 100755 --- a/composer.json +++ b/composer.json @@ -7,7 +7,7 @@ "magento/framework": ">=100.0.1" }, "type": "magento2-module", - "version": "6.1.1", + "version": "6.2.0", "autoload": { "files": [ "registration.php"