File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
js/view/payment/method-renderer Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,13 @@ define(
113
113
return CheckoutCom . getPaymentConfig ( ) [ 'quote_currency' ] ;
114
114
} ,
115
115
116
+ /**
117
+ * @returns {bool }
118
+ */
119
+ isCardAutosave : function ( ) {
120
+ return CheckoutCom . getPaymentConfig ( ) [ 'card_autosave' ] ;
121
+ } ,
122
+
116
123
/**
117
124
* @returns {string }
118
125
*/
Original file line number Diff line number Diff line change 42
42
<!--/ko-->
43
43
</ div >
44
44
45
- <!-- ko if: (isVaultEnabled())-->
45
+ <!-- ko if: (( isVaultEnabled()) && !isCardAutosave()) -->
46
46
< div class ="field choice ">
47
47
< input type ="checkbox " name ="vault[is_enabled] " class ="checkbox " data-bind ="attr: {'id': getCode() + '_enable_vault'}, checked: vaultEnabler.isActivePaymentTokenEnabler " />
48
48
< label class ="label " data-bind ="attr: {'for': getCode() + '_enable_vault'} ">
You can’t perform that action at this time.
0 commit comments