We will work on Apr 26th (Saturday) and will be off from Apr 30th (Wednesday) until May 2nd (Friday) for public holiday in our country

Commit 84a8f63a authored by attilak's avatar attilak

Check onChange if the cvc is not valid then disable the place order

button at onClick payments as well
parent 5126feef
...@@ -245,7 +245,6 @@ define( ...@@ -245,7 +245,6 @@ define(
"number": self.agreement_data.card.number "number": self.agreement_data.card.number
} }
}, },
onChange: function (state) { onChange: function (state) {
if (state.isValid) { if (state.isValid) {
if (typeof state.data !== 'undefined' && if (typeof state.data !== 'undefined' &&
...@@ -255,6 +254,8 @@ define( ...@@ -255,6 +254,8 @@ define(
} }
} else { } else {
self.encryptedCreditCardVerificationNumber = ''; self.encryptedCreditCardVerificationNumber = '';
self.placeOrderAllowed(false);
isValid(false);
} }
}, },
onValid: function (state) { onValid: function (state) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment