mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 13:44:42 +08:00
Merge pull request #662 from woocommerce/pcp-708-fix-free-trial-disable-funding
Fix disable-funding when free trial but dcc disabled
This commit is contained in:
commit
2687365b5d
1 changed files with 2 additions and 2 deletions
|
@ -927,9 +927,9 @@ class SmartButton implements SmartButtonInterface {
|
|||
}
|
||||
|
||||
if ( $this->is_free_trial_cart() ) {
|
||||
$all_sources = $this->all_funding_sources;
|
||||
$all_sources = array_keys( $this->all_funding_sources );
|
||||
if ( $is_dcc_enabled ) {
|
||||
$all_sources = array_keys( array_diff_key( $all_sources, array( 'card' => '' ) ) );
|
||||
$all_sources = array_diff( $all_sources, array( 'card' ) );
|
||||
}
|
||||
$disable_funding = $all_sources;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue