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 37ac8c0c authored by attilak's avatar attilak

Render secure fields with hidden CVC if stored payment is recurring

parent 03f410c9
......@@ -214,6 +214,7 @@ define(
// this should be fixed in new version of checkout card component
var hideCVC = false;
if (this.hasVerification()) {
if (self.agreement_data.variant == "bcmc") {
hideCVC = true;
self.placeOrderAllowed(true);
......@@ -221,6 +222,9 @@ define(
// for maestro cvc is optional
self.placeOrderAllowed(true);
}
} else {
hideCVC = true;
}
var oneClickCard = checkout
.create('card', {
......
......@@ -77,9 +77,7 @@
</div>
</div>
<!-- ko if: hasVerification()-->
<div afterRender="renderSecureCVC()" data-bind="attr: { id: 'cvcContainer-' + value}"></div>
<!-- /ko -->
<!--/ko-->
<!-- ko if: agreement_data.bank -->
......
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