From 6fc6d0ab05f8eca3fac3009fcca8aad741e99de2 Mon Sep 17 00:00:00 2001 From: Tigran <62335544+tikohov20@users.noreply.github.com> Date: Tue, 13 Dec 2022 15:57:42 +0400 Subject: [PATCH] Bnpl 2705 hotfix (#49) * shipping address hotfix * version bump --- composer.json | 2 +- etc/module.xml | 2 +- view/frontend/web/js/view/payment/method-renderer/mondu.js | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index c4986d3..c3c5ced 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "mondu/magento2-payment", "description": "Mondu payment method for magento 2", "type": "magento2-module", - "version": "1.1.9", + "version": "1.1.10", "license": [ "MIT" ], diff --git a/etc/module.xml b/etc/module.xml index 40571f9..80dae0a 100755 --- a/etc/module.xml +++ b/etc/module.xml @@ -1,6 +1,6 @@ - + diff --git a/view/frontend/web/js/view/payment/method-renderer/mondu.js b/view/frontend/web/js/view/payment/method-renderer/mondu.js index 933c813..3a72956 100644 --- a/view/frontend/web/js/view/payment/method-renderer/mondu.js +++ b/view/frontend/web/js/view/payment/method-renderer/mondu.js @@ -27,7 +27,7 @@ define([ isBillingSameAsShipping: true, initObservable: function () { - self = this; + var self = this; self._super().observe(["transactionResult"]); billingAddress().isAddressSameAsShipping.subscribe(function ( isSame @@ -73,11 +73,13 @@ define([ }, getMonduCheckoutTokenUrl: function () { + var self = this; return window.checkoutConfig.payment[self.getCode()] .monduCheckoutTokenUrl; }, getMonduSdkUrl: function () { + var self = this; return window.checkoutConfig.payment[self.getCode()].sdkUrl; },