🐛 Disable BCDC on Block Checkout

This commit is contained in:
Daniel Dudzic 2025-05-23 19:20:21 +02:00
parent 0de1d21a76
commit 57e70683b1
No known key found for this signature in database
GPG key ID: 31B40D33E3465483

View file

@ -154,7 +154,7 @@ class DisabledFundingSources {
* @return array
*/
private function apply_context_rules( array $disable_funding ) : array {
if ( 'MX' === $this->merchant_country && $this->dcc_configuration->is_bcdc_enabled() ) {
if ( 'MX' === $this->merchant_country && $this->dcc_configuration->is_bcdc_enabled() && is_checkout() ) {
return $disable_funding;
}