mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +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')
|
||||
|
|
|
@ -512,7 +512,7 @@ class SmartButton implements SmartButtonInterface {
|
|||
%5$s
|
||||
<button class="button alt">%6$s</button>
|
||||
</div>
|
||||
</form><div id="payments-sdk__contingency-lightbox"></div>',
|
||||
</form><div id="payments-sdk__contingency-lightbox"></div><style id="ppcp-hide-dcc">.payment_method_ppcp-credit-card-gateway {display:none;}</style>',
|
||||
esc_attr( $id ),
|
||||
esc_html__( 'Credit Card number', 'paypal-payments-for-woocommerce' ),
|
||||
esc_html__( 'Expiration', 'paypal-payments-for-woocommerce' ),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue