mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
Merge pull request #752 from woocommerce/pcp-831-fix-free-trial-card-button
Do not remove card funding source for free trials if card button enabled
This commit is contained in:
commit
061ca9e7fd
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue