From 97da39749b3fcb8736491bec1e199a4707c916a6 Mon Sep 17 00:00:00 2001 From: frosso Date: Fri, 20 Dec 2024 10:31:30 +0100 Subject: [PATCH] feat: enable tokenized ECE by default --- changelog/feat-enable-tokenized-ece-by-default | 4 ++++ includes/class-wc-payments-features.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 changelog/feat-enable-tokenized-ece-by-default diff --git a/changelog/feat-enable-tokenized-ece-by-default b/changelog/feat-enable-tokenized-ece-by-default new file mode 100644 index 00000000000..15a592603cb --- /dev/null +++ b/changelog/feat-enable-tokenized-ece-by-default @@ -0,0 +1,4 @@ +Significance: patch +Type: update + +feat: GooglePay/ApplePay refactor to leverage Store API is enabled by default. Please contact us if you encounter new issues with these buttons. diff --git a/includes/class-wc-payments-features.php b/includes/class-wc-payments-features.php index fa1748f5311..3ad843bc2e8 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, '0' ); + return '1' === get_option( self::TOKENIZED_CART_ECE_FLAG_NAME, '1' ); } /**