Skip to content

Commit

Permalink
Disables the tokenised cart for ECE integration by default (#10322)
Browse files Browse the repository at this point in the history
  • Loading branch information
FangedParakeet authored Feb 7, 2025
1 parent e51dffc commit 0758236
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions changelog/patch-disable-tokenised-carts-by-default
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fix

Ensures that the tokenised cart for ECE implementation is disabled by default.
2 changes: 1 addition & 1 deletion includes/class-wc-payments-features.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
}

/**
Expand Down

0 comments on commit 0758236

Please sign in to comment.