mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-01 07:02:48 +08:00
Disable card button for blocks
not working well with express, cannot fill fields
This commit is contained in:
parent
29e1b0cbd0
commit
8f3e9c4554
1 changed files with 4 additions and 0 deletions
|
@ -1003,6 +1003,10 @@ class SmartButton implements SmartButtonInterface {
|
|||
}
|
||||
}
|
||||
|
||||
if ( in_array( $context, array( 'checkout-block', 'cart-block' ), true ) ) {
|
||||
$disable_funding[] = 'card';
|
||||
}
|
||||
|
||||
if ( $this->is_free_trial_cart() ) {
|
||||
$all_sources = array_keys( $this->all_funding_sources );
|
||||
if ( $is_dcc_enabled || $is_separate_card_enabled ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue