-
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
Support tokenized cart PRBs on blocks cart and checkout #9150
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: +4.48 kB (0%) Total Size: 1.33 MB
ℹ️ View Unchanged
|
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.
For the most part, this worked as expected and looks pretty neat and tidy. 🙌
There is quite a lot of duplicated code inside event-handlers.js
, which is unfortunate, but unfortunately I can't really think of a better way to recommend improving this without performing a considerable refactor of the entire implementation...which I would not recommend. 😅
I think that's fine for now, but I've left a few little queries, comments, and suggestions for your perusal nonetheless. Let me know your thoughts and hopefully there won't be anything that requires too much additional work to amend. 🙏
@FangedParakeet I think I've taken care of all comments. Let me know if see anything else out of place. |
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.
I tested this out purchasing regular, variable, virtual, and subscription products and all succeeded as expected. 🎉
However, when the checkout/payment processing failed for some reason, I'm not sure that we are handling this correctly and the modal hangs for some time before failing with an unknown error. I think I've mentioned in a separate comment where I believe this can be resolved. Can you just review some of the error handling with this implementation please?
Once that's all set, I think this one should be good to go. 💪
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.
Does exactly what it says on the tin: tested a variety of products and failures from both blocks cart and checkout pages without unexpected behaviour. Nice one! Left a minor query, but other than that this looks good to 🚢.
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.
Cheers for that last little change. Error parsing LGTM and works as expected now. 🙌
Fixes #8527
Changes proposed in this Pull Request
This adds tokenized cart PRBs to the cart and checkout blocks. The goal is implement the PRB component on the blocks cart and checkout pages, removing any reliance on the older implementation.
Testing instructions
npm run wp option update _wcpay_feature_stripe_ece 0
. To verify it's disabled you can check the WooPayments Express Checkout settings for a border radius option. Border radius only appears for the ECE buttons.Unknown
.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