Skip to content

Commit

Permalink
feat: enable tokenized ECE by default - round 2 (#10415)
Browse files Browse the repository at this point in the history
  • Loading branch information
frosso authored Feb 20, 2025
1 parent 570cc98 commit 0e656e7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions changelog/feat-enable-tokenized-ece-by-default-round-2
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: update

feat: GooglePay/ApplePay refactor to leverage Store API is enabled by default - second try.
2 changes: 1 addition & 1 deletion includes/class-wc-payments-features.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public static function are_payments_enabled() {
public static function is_tokenized_cart_ece_enabled(): bool {
$account = WC_Payments::get_database_cache()->get( WCPay\Database_Cache::ACCOUNT_KEY, true );

return is_array( $account ) && ! ( $account['is_tokenized_ece_disabled'] ?? false ) && '1' === get_option( self::TOKENIZED_CART_ECE_FLAG_NAME, '0' );
return is_array( $account ) && ! ( $account['is_tokenized_ece_disabled'] ?? false ) && '1' === get_option( self::TOKENIZED_CART_ECE_FLAG_NAME, '1' );
}

/**
Expand Down

0 comments on commit 0e656e7

Please sign in to comment.