Skip to content

Conversation

@wjrosa
Copy link
Contributor

@wjrosa wjrosa commented Oct 2, 2025

Fixes STRIPE-733
See #4687 (comment)

Changes proposed in this Pull Request:

In this PR, I am hardcoding the Express Checkout feature flag to be always enabled. This will force ECE for all merchants, even those that, for some reason, changed the default flag value, making it safe to remove all code related to Payment Request Buttons.

Testing instructions

Code review is enough.


  • Covered with tests (or have a good reason not to test in description ☝️)
  • Tested on mobile (or does not apply)

Changelog entry

  • This Pull Request does not require a changelog entry. (Comment required below)
Changelog Entry Comment

Comment

Post merge

@wjrosa wjrosa marked this pull request as ready for review October 3, 2025 10:24
@wjrosa wjrosa requested review from a team, Mayisha and daledupreez and removed request for a team October 3, 2025 10:30
@Mayisha
Copy link
Contributor

Mayisha commented Oct 3, 2025

@wjrosa this feature flag check becomes unnecessary as we are removing the PRB frontend and backend code/files completely. IMO we can remove the is_stripe_ece_enabled function and the corresponding calls to it. With PRB gone, ECE would be the only available option so we don't need the feature flag check anymore.

@wjrosa
Copy link
Contributor Author

wjrosa commented Oct 3, 2025

I agree. However, that was to address @daledupreez's concerns in #4687 (comment). It is still possible for a merchant to manually change the feature flag value, as far as I am aware. Let me know if that's a wrong assumption (I hope so).

@Mayisha
Copy link
Contributor

Mayisha commented Oct 6, 2025

I agree. However, that was to address @daledupreez's concerns in #4687 (comment). It is still possible for a merchant to manually change the feature flag value, as far as I am aware. Let me know if that's a wrong assumption (I hope so).

cc @daledupreez for clarification. I think the feature flag should be deleted. Also ECE has been default on for UPE since the beginning of this year

@daledupreez
Copy link
Contributor

I saw at least one merchant with the express checkout feature flag disabled during my support rotation in September - they were still using PRBs. 😬 I didn't know that was still possible, but it clearly was.

With that in mind, I think it's probably safest to stick with @wjrosa's approach for the short term.

Copy link
Contributor

@daledupreez daledupreez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than the changelog entry wording, this LGTM.

Copy link
Contributor

@Mayisha Mayisha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good to me. 👍

However, I still think removing the is_stripe_ece_enabled completey vs returning true from this function would behave the same if we remove all the PRB related files (as there is no fallback and ECE is the only option available) 🤔

@wjrosa wjrosa enabled auto-merge (squash) October 7, 2025 12:43
@wjrosa wjrosa merged commit 3ed0f68 into develop Oct 7, 2025
39 of 40 checks passed
@wjrosa wjrosa deleted the update/hardcoding-ece-as-enabled branch October 7, 2025 12:52
@daledupreez daledupreez added this to the 10.0.0 milestone Oct 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants