mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 14:57:26 +08:00
🐛 Stop enforcing card payments in checkout
Removed a filter that reverted settings entered in the legacy UI’s “Disable Alternative Payment Methods” field.
This commit is contained in:
parent
e9b3cc61d2
commit
09c4f176d0
1 changed files with 1 additions and 5 deletions
|
@ -152,11 +152,7 @@ class DisabledFundingSources {
|
||||||
return $disable_funding;
|
return $disable_funding;
|
||||||
}
|
}
|
||||||
|
|
||||||
// A checkout page without ACDC: Load card button.
|
return $disable_funding;
|
||||||
return array_filter(
|
|
||||||
$disable_funding,
|
|
||||||
static fn( string $funding_source ) => $funding_source !== 'card'
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue