-
Notifications
You must be signed in to change notification settings - Fork 69
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
Displaying Clearpay instead of Afterpay for UK based stores #7995
Conversation
Test the buildOption 1. Jetpack Beta
Option 2. Jurassic Ninja - available for logged-in A12s🚀 Launch a JN site with this branch 🚀 ℹ️ Install this Tampermonkey script to get more options. Build info:
Note: the build is updated when a new commit is pushed to this PR. |
Size Change: +601 B (0%) Total Size: 1.27 MB
ℹ️ View Unchanged
|
8273b00
to
86f570e
Compare
4e719ee
to
19ba51e
Compare
This reverts commit 19ba51e.
7f02ce1
to
eaff055
Compare
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.
Removed unnecessary mask and group
{ 'GB' === wcpaySettings?.connect?.country ? ( | ||
<ClearpayIcon /> | ||
) : ( | ||
<AfterpayIcon /> | ||
) } |
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.
We need to use the store country here because the store is not connected to Stripe at this point
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.
Tested this locally, including a few "error" account data scenarios (or disconnected account).
Changes look solid, just a few very minor optional notes.
Co-authored-by: Francesco <[email protected]>
Co-authored-by: Francesco <[email protected]>
Co-authored-by: Francesco <[email protected]>
Fixes #6425
Changes proposed in this Pull Request
Based on the account country set in Stripe, we should display Clearpay instead of Afterpay everywhere.
Testing instructions
Using this branch and a Stripe account with a UK address access all pages that show payment methods and ensure Clearpay name and logo is used instead of Afterpay. Some pages you should check:
Then update to a Stripe account from the US and ensure we show Afterpay instead of Clearpay.
I recommend using the Jurassic Ninja link bellow twice and creating different stripe test accounts.
npm run changelog
to add a changelog file, choosepatch
to leave it empty if the change is not significant. You can add multiple changelog files in one PR by running this command a few times.Post merge