From 011f50d61e232edac33740429e22106a6125ede2 Mon Sep 17 00:00:00 2001 From: Nickolas Malovanets Date: Thu, 1 Aug 2024 16:50:40 +0300 Subject: [PATCH] Make Fastlane Component Compatible with Magento2.3.x --- view/frontend/web/js/model/fastlane.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/view/frontend/web/js/model/fastlane.js b/view/frontend/web/js/model/fastlane.js index 59a911a..4df8444 100644 --- a/view/frontend/web/js/model/fastlane.js +++ b/view/frontend/web/js/model/fastlane.js @@ -104,7 +104,7 @@ define([ * @return {Promise} */ buildBraintreeFastlaneInstance: async function (gatewayData) { - this.loadAxo(gatewayData); + this.rewriteAxoLoading(gatewayData); //todo: remove as soon as axo.js is compatible with require js. await this.loadScript('bold_braintree_fastlane_hosted_fields', 'hostedFields'); const client = await this.loadScript('bold_braintree_fastlane_client'); const dataCollector = await this.loadScript('bold_braintree_fastlane_data_collector'); @@ -157,7 +157,7 @@ define([ * @return {Promise} */ buildPPCPFastlaneInstance: async function (gatewayData) { - this.loadAxo(gatewayData); + this.rewriteAxoLoading(gatewayData); //todo: remove as soon as axo.js is compatible with require js. await this.loadScript('bold_paypal_fastlane_hosted_fields', 'hostedFields'); await this.loadScript('bold_paypal_fastlane_client', 'client'); let debugMode = ''; @@ -181,7 +181,7 @@ define([ * @param {{client_token: string}} gatewayData * @return {void} */ - loadAxo: function (gatewayData) { + rewriteAxoLoading: function (gatewayData) { this.saveEventListeners(); const originalAppendChild = Element.prototype.appendChild; const self = this;