-
Notifications
You must be signed in to change notification settings - Fork 141
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
v6 All UIElements can receive defaultProps based on regulations #2546
Conversation
|
size-limit report 📦
|
Size Change: +2.01 kB (0%) Total Size: 1.13 MB
ℹ️ View Unchanged
|
…ed on whether component is a Dropin or not
Quality Gate passedIssues Measures |
Summary
Finnish regulations state that no payment methods can be open by default...
This PR allows all
UIElements
to receive a set ofdefaultProps
based on regulatory requirements (currently retrieved based oncountryCode
)The functionality is now in place should this logic ever need to be expanded (based on other country's requirements &/or different logic entirely)
It should be noted that the merchant can still override these regulatory defaults if they want to. That's up to them.
But at least CheckoutWeb will be compliant "out of the box"
Tested scenarios
All current unit tests pass
Add new ones specific to this rule
Relates to issue: COAPI-293