mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-01 07:02:48 +08:00
🐛 New UI: Disable BCDC on store-level
Instead of checking “is enabled” we now check “has capability” - i.e. if a merchant has ACDC capability we will always disable the BCDC funding source
This commit is contained in:
parent
fb27373c1b
commit
aab21b62b4
1 changed files with 2 additions and 2 deletions
|
@ -145,8 +145,8 @@ class DisabledFundingSources {
|
|||
* @return array
|
||||
*/
|
||||
private function apply_context_rules( array $disable_funding ) : array {
|
||||
if ( ! is_checkout() || $this->dcc_configuration->is_acdc_enabled() ) {
|
||||
// Non-checkout pages, or ACDC enabled: Don't load card button.
|
||||
if ( ! is_checkout() || $this->dcc_configuration->use_acdc() ) {
|
||||
// Non-checkout pages, or ACDC capability: Don't load card button.
|
||||
$disable_funding[] = 'card';
|
||||
|
||||
return $disable_funding;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue