Skip to content

feat(paymnet): Remove isButtonMicroTextDisabled for not usage#3249

Merged
henrikh-kovalenko merged 1 commit into
masterfrom
PI-5105
Jun 25, 2026
Merged

feat(paymnet): Remove isButtonMicroTextDisabled for not usage#3249
henrikh-kovalenko merged 1 commit into
masterfrom
PI-5105

Conversation

@henrikh-kovalenko

@henrikh-kovalenko henrikh-kovalenko commented May 14, 2026

Copy link
Copy Markdown
Contributor

What/Why?

Removes the dead code related to the PI-2061.amazon_pay_button_micro_text_disabled experiment from checkout-sdk.

The experiment controlled whether the Amazon Pay button micro text ("USE YOUR AMAZON ACCOUNT") was hidden by passing design: 'C0001' to the Amazon Pay button config. This value was sourced from initializationData.isButtonMicroTextDisabled, which was set by bcapp based on a LaunchDarkly flag.

The experiment was disabled and fully removed from bcapp in bigcommerce/bigcommerce#67068, meaning isButtonMicroTextDisabled is no longer included in the initializationData response. This PR removes the now-dead handling code from checkout-sdk as a maintenance cleanup.

Rollout/Rollback

rollback this commit

Testing

without changes

without.changes.mov

with changes

with.changes.mov
image image

Note

Low Risk
Dead-code removal only; default Amazon Pay button rendering is unchanged aside from no longer honoring a field that is no longer provided.

Overview
Removes checkout-sdk support for the retired PI-2061 Amazon Pay button micro-text experiment. initializationData.isButtonMicroTextDisabled is no longer read in cart/checkout strategies, and the processor no longer maps it to design: C0001 on Amazon Pay button config.

Also deletes AmazonPayV2ButtonDesign, related types/options, the micro-text unit test, and mock helpers—aligned with bcapp no longer sending this flag after LaunchDarkly cleanup.

Reviewed by Cursor Bugbot for commit 3bc82d8. Bugbot is set up for automated code reviews on this repo. Configure here.

@henrikh-kovalenko henrikh-kovalenko marked this pull request as ready for review June 24, 2026 21:53
@henrikh-kovalenko henrikh-kovalenko requested a review from a team as a code owner June 24, 2026 21:53
@PavlenkoM

Copy link
Copy Markdown
Contributor

cursor review

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit dec07a2. Configure here.

@bc-dmytro-herasymuk bc-dmytro-herasymuk left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM

Comment thread packages/amazon-pay-utils/src/mocks/amazon-pay-v2.mock.ts
@henrikh-kovalenko henrikh-kovalenko merged commit 4848254 into master Jun 25, 2026
16 checks passed
@henrikh-kovalenko henrikh-kovalenko deleted the PI-5105 branch June 25, 2026 10:48
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