Merge pull request #3490 from woocommerce/PCP-4972-legacy-ui-mexico-notice-on-frontend-when-wp-debugging-is-enabled

Legacy UI - Mexico - Notice on frontend when wp debugging is enabled  (4972)
This commit is contained in:
Emili Castells 2025-06-27 18:02:34 +02:00 committed by GitHub
commit a445166980
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -332,7 +332,9 @@ class CardPaymentsConfiguration {
public function is_bcdc_enabled() : bool {
if ( 'MX' === $this->store_country ) {
$bcdc_setting = get_option( 'woocommerce_ppcp-card-button-gateway_settings' );
return 'yes' === $bcdc_setting['enabled'];
$enabled = $bcdc_setting['enabled'] ?? '';
return 'yes' === $enabled;
}
return $this->is_enabled() && ! $this->use_acdc();