Disable card button for blocks

not working well with express, cannot fill fields
This commit is contained in:
Alex P 2023-04-21 09:46:28 +03:00
parent 29e1b0cbd0
commit 8f3e9c4554
No known key found for this signature in database
GPG key ID: 54487A734A204D71

View file

@ -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 ) {