-
Notifications
You must be signed in to change notification settings - Fork 214
feat(payment): PI-3536 [FE] Deprecate Masterpass #3085
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| new CouponActionCreator(new CouponRequestSender(requestSender)), | ||
| new CustomerStrategyActionCreator( | ||
| createCustomerStrategyRegistry(store, requestSender, locale), | ||
| createCustomerStrategyRegistry(store, requestSender), |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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()), |
There was a problem hiding this comment.
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 ?? {}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bc-wpietrzak same here
BC-krasnoshapka
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
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