Skip to content

Conversation

@bc-wpietrzak
Copy link
Contributor

@bc-wpietrzak bc-wpietrzak commented Nov 19, 2025

What/Why?

Remove Masterpass-related code, as the provider is deprecated and can no longer be used.
Related checkout-js PR: bigcommerce/checkout-js#2711

Rollout/Rollback

Revert

Testing

Unit tests/CI

new CouponActionCreator(new CouponRequestSender(requestSender)),
new CustomerStrategyActionCreator(
createCustomerStrategyRegistry(store, requestSender, locale),
createCustomerStrategyRegistry(store, requestSender),

Choose a reason for hiding this comment

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

@bc-wpietrzak is this change intended? if yes, why it's needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In all the cases you've pointed out locale value was only used by Masterpass; with Masterpass gone, locale is no longer needed


buttonActionCreator = new CheckoutButtonStrategyActionCreator(
createCheckoutButtonRegistry(store, createRequestSender(), createFormPoster(), 'en'),
createCheckoutButtonRegistry(store, createRequestSender(), createFormPoster()),
Copy link

@BC-krasnoshapka BC-krasnoshapka Nov 26, 2025

Choose a reason for hiding this comment

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

@bc-wpietrzak is removing locale here and in other tests intended?

options?: CheckoutButtonInitializerOptions,
): CheckoutButtonInitializer {
const { host, locale = 'en' } = options ?? {};
const { host } = options ?? {};

Choose a reason for hiding this comment

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

@bc-wpietrzak same here

Copy link

@BC-krasnoshapka BC-krasnoshapka left a comment

Choose a reason for hiding this comment

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

LGTM!

@bc-wpietrzak bc-wpietrzak merged commit ff5f0ba into master Dec 2, 2025
9 checks passed
@bc-wpietrzak bc-wpietrzak deleted the PI-3536 branch December 2, 2025 08:55
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.

6 participants