🐛 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:
Philipp Stracker 2025-03-18 16:32:38 +01:00
parent fb27373c1b
commit aab21b62b4
No known key found for this signature in database

View file

@ -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;