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(
"number": self.agreement_data.card.number
}
},
onChange: function (state) {
if (state.isValid) {
if (typeof state.data !== 'undefined' &&
......@@ -255,6 +254,8 @@ define(
}
} else {
self.encryptedCreditCardVerificationNumber = '';
self.placeOrderAllowed(false);
isValid(false);
}
},
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