From 9b4cfd7f30d11958ff870ba39f4345cfd06a557b Mon Sep 17 00:00:00 2001 From: Samir Merchant Date: Thu, 6 Feb 2025 20:58:53 -0500 Subject: [PATCH] Disables the tokenised cart for ECE integration by default (#10322) --- changelog/patch-disable-tokenised-carts-by-default | 4 ++++ includes/class-wc-payments-features.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 changelog/patch-disable-tokenised-carts-by-default diff --git a/changelog/patch-disable-tokenised-carts-by-default b/changelog/patch-disable-tokenised-carts-by-default new file mode 100644 index 00000000000..0c3c7646c25 --- /dev/null +++ b/changelog/patch-disable-tokenised-carts-by-default @@ -0,0 +1,4 @@ +Significance: patch +Type: fix + +Ensures that the tokenised cart for ECE implementation is disabled by default. diff --git a/includes/class-wc-payments-features.php b/includes/class-wc-payments-features.php index 0a80979e849..6eefb80fb9b 100644 --- a/includes/class-wc-payments-features.php +++ b/includes/class-wc-payments-features.php @@ -49,7 +49,7 @@ public static function are_payments_enabled() { * @return bool */ public static function is_tokenized_cart_ece_enabled(): bool { - return '1' === get_option( self::TOKENIZED_CART_ECE_FLAG_NAME, '1' ); + return '1' === get_option( self::TOKENIZED_CART_ECE_FLAG_NAME, '0' ); } /**