-
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
Pass Blocks checkout appearance on init WooPay #9075
Pass Blocks checkout appearance on init WooPay #9075
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: +37.5 kB (+3%) Total Size: 1.32 MB
ℹ️ View Unchanged
|
c93bf51
to
acd2af3
Compare
8ef4604
to
3fe78b8
Compare
@hsingyuc the appearance data is not being sent when clicking the WooPay button on blocks checkout page, only works on the email field redirect, is that expected? |
Do you mean you log
@alefesouza When click the WooPay button on the Blocks checkout page, it should work as below: Screen.Recording.2024-07-15.at.3.43.33.PM.mov |
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.
@hsingyuc on your video for some reason the express checkout button is using the fallback instead of redirect to WooPay without opening the popup, could you take a look? On the following video the styles are being applied when using the email redirect but not when clicking the button without the fallback:
Screen.Recording.2024-07-15.at.9.50.32.PM.mov
2618344
to
464ade4
Compare
@alefesouza I'm having hard time to hit first-party auth but I pass blocks checkout appearance on first-party auth, can you test it for me? Thanks! |
32bd0d3
to
bf2749f
Compare
@alefesouza I got first-party auth working, added a fix when on NUX and updated the test instructions. Thank you! |
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, thanks @hsingyuc!
Changes proposed in this Pull Request
This PR is part of Spike – Global Themes Support proof of concept.
We reuse
getAppearance
to select styles by elements from the blocks checkout page and send them to WooPay on initialization.EPIC https://github.com/Automattic/woopay/issues/2781
SPIKE here
PT here
Screen.Recording.2024-07-17.at.7.22.50.AM.mov
Testing instructions
WooPay global theme support
feature flagOR
Test 1:
getAppearance
Return to cart
-> Blocks checkout page -> WooPay buttonCheckout as guest
and initialize WooPay as a new WooPay shopper with the email field redirectReturn to cart
-> Blocks checkout pageTest 2:
getAppearance
for regressionReturn to cart
-> Blocks checkout page -> WooPay buttonCheckout as guest
and initialize WooPay as a new WooPay shopper with the email field redirectReturn to cart
-> Blocks checkout pagenpm 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