diff --git a/composer.json b/composer.json index 5d53ad4a..54dfd818 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "paynl/magento2-plugin", "description": "PAY. Magento2 Payment methods", "type": "magento2-module", - "version": "1.6.9", + "version": "1.7.0", "require": { "magento/module-sales": "100 - 103", "magento/module-payment": "100 - 103", diff --git a/view/frontend/web/js/view/payment/method-renderer/default.js b/view/frontend/web/js/view/payment/method-renderer/default.js index b6c59db0..ab62980b 100644 --- a/view/frontend/web/js/view/payment/method-renderer/default.js +++ b/view/frontend/web/js/view/payment/method-renderer/default.js @@ -109,10 +109,10 @@ define( }, placeOrder: function (data, event) { var placeOrder; - var showingKVK = this.getKVK() == 2; - var showingDOB = this.getDOB() == 2; - if (showingKVK) { - if (this.billink_agree != true) { + var cocRequired = this.getKVK() == 2; + var dobRequired = this.getDOB() == 2; + if (cocRequired) { + if (this.billink_agree != true) { alert({ title: $.mage.__('Betalingsvoorwaarden'), content: $.mage.__('U dient eerst akkoord te gaan met de betalingsvoorwaarden.'), @@ -133,8 +133,8 @@ define( return false; } } - if (showingDOB) { - if (this.dateofbirth == null || this.dateofbirth.length < 1) { + if (dobRequired) { + if (this.dateofbirth == null || this.dateofbirth.length < 1) { alert({ title: $.mage.__('Ongeldig geboortedatum'), content: $.mage.__('Voer een geldig geboortedatum in.'),