We will be off from 27/1 (Monday) to 31/1 (Friday) (GMT +7) for our Tet Holiday (Lunar New Year) 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( ...@@ -214,6 +214,7 @@ define(
// this should be fixed in new version of checkout card component // this should be fixed in new version of checkout card component
var hideCVC = false; var hideCVC = false;
if (this.hasVerification()) {
if (self.agreement_data.variant == "bcmc") { if (self.agreement_data.variant == "bcmc") {
hideCVC = true; hideCVC = true;
self.placeOrderAllowed(true); self.placeOrderAllowed(true);
...@@ -221,6 +222,9 @@ define( ...@@ -221,6 +222,9 @@ define(
// for maestro cvc is optional // for maestro cvc is optional
self.placeOrderAllowed(true); self.placeOrderAllowed(true);
} }
} else {
hideCVC = true;
}
var oneClickCard = checkout var oneClickCard = checkout
.create('card', { .create('card', {
......
...@@ -77,9 +77,7 @@ ...@@ -77,9 +77,7 @@
</div> </div>
</div> </div>
<!-- ko if: hasVerification()-->
<div afterRender="renderSecureCVC()" data-bind="attr: { id: 'cvcContainer-' + value}"></div> <div afterRender="renderSecureCVC()" data-bind="attr: { id: 'cvcContainer-' + value}"></div>
<!-- /ko -->
<!--/ko--> <!--/ko-->
<!-- ko if: agreement_data.bank --> <!-- 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