Skip to content

Commit

Permalink
Merge pull request #114 from paynl/Feature/codeupdate
Browse files Browse the repository at this point in the history
Updated var names
  • Loading branch information
woutse authored Jan 21, 2021
2 parents 80c873a + 69edcf6 commit 3088bf3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
12 changes: 6 additions & 6 deletions view/frontend/web/js/view/payment/method-renderer/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.'),
Expand All @@ -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.'),
Expand Down

0 comments on commit 3088bf3

Please sign in to comment.