Do not remove card funding source for free trials if card button enabled

This commit is contained in:
Alex P 2022-07-27 16:26:27 +03:00
parent 791d0ac1d7
commit 615e96c409

View file

@ -984,7 +984,7 @@ class SmartButton implements SmartButtonInterface {
if ( $this->is_free_trial_cart() ) {
$all_sources = array_keys( $this->all_funding_sources );
if ( $is_dcc_enabled ) {
if ( $is_dcc_enabled || $is_separate_card_enabled ) {
$all_sources = array_diff( $all_sources, array( 'card' ) );
}
$disable_funding = $all_sources;