mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
hide paypal credit on checkout until isEligible
This commit is contained in:
parent
7445c91ed7
commit
e4b6a412ea
2 changed files with 4 additions and 1 deletions
|
@ -22,6 +22,9 @@ class CreditCardRenderer {
|
|||
wrapperElement.parentNode.removeChild(wrapperElement);
|
||||
return;
|
||||
}
|
||||
|
||||
document.querySelector('#ppcp-hide-dcc').parentNode.removeChild(document.querySelector('#ppcp-hide-dcc'));
|
||||
|
||||
if (
|
||||
this.defaultConfig.enforce_vault
|
||||
&& document.querySelector(wrapper + ' .ppcp-credit-card-vault')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue