Skip to content

Commit

Permalink
Remove the deferred UPE flag which is not used anymore (#7917)
Browse files Browse the repository at this point in the history
Co-authored-by: Timur Karimov <[email protected]>
  • Loading branch information
timur27 and Timur Karimov authored Dec 14, 2023
1 parent 066e876 commit b37d805
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 4 additions & 0 deletions changelog/remove-flag-usage
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: fix

Avoid using the removed deferred UPE flag
3 changes: 0 additions & 3 deletions includes/class-wc-payments-account.php
Original file line number Diff line number Diff line change
Expand Up @@ -1476,9 +1476,6 @@ private function finalize_connection( $state, $mode ) {
// user might not have agreed to TOS yet.
update_option( '_wcpay_onboarding_stripe_connected', [ 'is_existing_stripe_account' => false ] );

// Automatically enable deferred intent UPE for new stores.
update_option( WC_Payments_Features::UPE_DEFERRED_INTENT_FLAG_NAME, '1' );

// Track account connection finish.
$incentive = ! empty( $_GET['promo'] ) ? sanitize_text_field( wp_unslash( $_GET['promo'] ) ) : '';
$progressive = ! empty( $_GET['progressive'] ) && 'true' === $_GET['progressive'];
Expand Down

0 comments on commit b37d805

Please sign in to comment.