Skip to content

fix(payment): CHECKOUT-9796 Restore removal of fallback strategies from essential build#3165

Merged
animesh1987 merged 2 commits intomasterfrom
log2
Mar 8, 2026
Merged

fix(payment): CHECKOUT-9796 Restore removal of fallback strategies from essential build#3165
animesh1987 merged 2 commits intomasterfrom
log2

Conversation

@animesh1987
Copy link
Contributor

@animesh1987 animesh1987 commented Mar 4, 2026

What/Why?

Restore

Rollout/Rollback

  • revert this PR

Testing

  • CI

Note

Medium Risk
Changes how payment/customer/checkout-button strategies are registered and bundled (including essential-build behavior and optional lazy-strategy rollout), which could affect which strategies are available at runtime during initialization/finalization flows.

Overview
Restores essential-build behavior by excluding bundled checkout-button strategies when process.env.ESSENTIAL_BUILD is set, and adds a rollOutLazyPaymentStrategies option to createCheckoutService to limit v2 registries to only essential factories (always including NO_PAYMENT_DATA_REQUIRED) and omit customer strategies when rolling out lazy loading.

Simplifies v2 strategy registration by removing toResolvableModule wrapping and deleting the experiment-based mismatch checking/logging path (matchExistingIntegrations) along with ErrorLogger plumbing from the payment/customer strategy action creators; unit tests are updated accordingly.

Written by Cursor Bugbot for commit 37f9c4a. This will update automatically on new commits. Configure here.

@animesh1987 animesh1987 changed the title fix(payment): CHECKOUT-9796: Restore removal of fallback strategies f… fix(payment): CHECKOUT-9796 Restore removal of fallback strategies f… Mar 4, 2026
@animesh1987 animesh1987 changed the title fix(payment): CHECKOUT-9796 Restore removal of fallback strategies f… fix(payment): CHECKOUT-9796 Restore removal of fallback strategies from essential build Mar 4, 2026
@animesh1987 animesh1987 marked this pull request as ready for review March 5, 2026 05:04
@animesh1987 animesh1987 requested a review from a team as a code owner March 5, 2026 05:04
// version because there is no new commit ahead of it.
if (
process.env.WATCH ||
process.env.NODE_ENV !== 'production' ||
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Had to do this, since it was creating a new build version for sdk which was causing hosted fields to not load while testing as a custom checkout.

paymentIntegrationService,
paymentStrategyFactories,
// TODO: Replace once CHECKOUT-9450.lazy_load_payment_strategies experiment is rolled out
// process.env.ESSENTIAL_BUILD ? {} : paymentStrategyFactories,
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe keep the TODO comment because we'll still need to do that step.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

@animesh1987 animesh1987 merged commit fd316d0 into master Mar 8, 2026
9 checks passed
@animesh1987 animesh1987 deleted the log2 branch March 8, 2026 22:36
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