From 5e40499d3b87ed54665fcf88093079b611fe28eb Mon Sep 17 00:00:00 2001 From: Dmitry Fedyuk Date: Mon, 30 Sep 2019 04:16:46 +0600 Subject: [PATCH] 1.6.4 --- composer.json | 2 +- view/frontend/requirejs-config.js | 21 +++++++++++++++++++++ view/frontend/web/payment-list.js | 19 +++++++++++++++++++ 3 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 view/frontend/requirejs-config.js create mode 100644 view/frontend/web/payment-list.js diff --git a/composer.json b/composer.json index 97e7360..156b97b 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "mage2pro/ipay88" - ,"version": "1.6.3" + ,"version": "1.6.4" ,"description": "iPay88 integration with Magento 2" ,"type": "magento2-module" ,"homepage": "https://mage2.pro/c/extensions/ipay88" diff --git a/view/frontend/requirejs-config.js b/view/frontend/requirejs-config.js new file mode 100644 index 0000000..0ae543c --- /dev/null +++ b/view/frontend/requirejs-config.js @@ -0,0 +1,21 @@ +var config = {config: {mixins: { + /** + * 2019-09-30 + * Without this mixin, even the standard Magento 2.3.2 checkout + * does not show my payment methods on a first page load with an empty browser cache. + * Previously, I thought that the problem is only reproducible with third-party checkout modules. + * See my previous evidences of the issue: + * 1) «How to fix the bug of Aheadworks OneStepCheckout not showing a payment module + * on the frontend checkout screen?» https://mage2.pro/t/5616 + * 2) «Mageplaza One Step Checkout does not show Mage2.PRO payment methods on the frontend checkout screen»: + * https://github.com/mage2pro/core/issues/78 + * 3) «Mageplaza One Step Checkout does not show the Stripe module on the frontend checkout screen»: + * https://github.com/mage2pro/stripe/issues/65 + * 4) «Make the Vantiv payment module compatible with a custom checkout module»: + * https://github.com/mage2pro/vantiv/issues/3 + * 5) «Mageplaza One Step Checkout does not show the Dragonpay payment option to anonymous visitors + * on the frontend checkout screen's initial load»: + * https://github.com/mage2pro/dragonpay/issues/5 + */ + 'Magento_Checkout/js/view/payment/list': {'Dfe_IPay88/payment-list': true} +}}}; \ No newline at end of file diff --git a/view/frontend/web/payment-list.js b/view/frontend/web/payment-list.js new file mode 100644 index 0000000..ac7e27e --- /dev/null +++ b/view/frontend/web/payment-list.js @@ -0,0 +1,19 @@ +/** + * 2019-09-30 + * Without this mixin, even the standard Magento 2.3.2 checkout + * does not show my payment methods on a first page load with an empty browser cache. + * Previously, I thought that the problem is only reproducible with third-party checkout modules. + * See my previous evidences of the issue: + * 1) «How to fix the bug of Aheadworks OneStepCheckout not showing a payment module + * on the frontend checkout screen?» https://mage2.pro/t/5616 + * 2) «Mageplaza One Step Checkout does not show Mage2.PRO payment methods on the frontend checkout screen»: + * https://github.com/mage2pro/core/issues/78 + * 3) «Mageplaza One Step Checkout does not show the Stripe module on the frontend checkout screen»: + * https://github.com/mage2pro/stripe/issues/65 + * 4) «Make the Vantiv payment module compatible with a custom checkout module»: + * https://github.com/mage2pro/vantiv/issues/3 + * 5) «Mageplaza One Step Checkout does not show the Dragonpay payment option to anonymous visitors + * on the frontend checkout screen's initial load»: + * https://github.com/mage2pro/dragonpay/issues/5 + */ +define(['Dfe_IPay88/loader'], function() {return function(sb) {return sb;};}); \ No newline at end of file