-
Notifications
You must be signed in to change notification settings - Fork 210
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
ACSS: Refactor unsupported deferred intent in the blocks checkout #3866
Conversation
…merce/woocommerce-gateway-stripe into fix/3804-refactor-deferred-intent
Co-authored-by: César Costa <10233985+cesarcosta99@users.noreply.github.com>
Co-authored-by: César Costa <10233985+cesarcosta99@users.noreply.github.com>
appearance, | ||
paymentMethodCreation: 'manual', | ||
fonts: getFontRulesFromPage(), |
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.
Assigned @cesarcosta99 and @wjrosa as reviewers since this PR is a follow up from #3805. |
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.
Code is good and works as expected! I was able to place an order following the test steps.
One bug I noticed (maybe it is something related to my environment only) is that if I don't provide a phone number I get the following error:

If it is something happening to everyone, we need to make the phone number required for this method.
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.
Code looks good and tests well 🎉 I spotted some issues, though:
- I experienced the same as @wjrosa and get the error
Please provide complete payment details.
when I don't provide a phone number. I tested this in both classic and Blocks checkouts and both errored. We'll likely need to enforce a phone requirement in the forms, maybe not something to address in this PR, but at least something to add to ACSS: Handle Errors and Edge Cases #3830. - When trying to checkout with ACSS in a clean session (e.g. incognito mode), the payment method doesn't display as I fill out the form. Instead, I need to refresh the page to be able to see and select the method. I only experienced this in Blocks checkout:
output.mp4
client/blocks/upe/upe-deferred-intent-creation/payment-elements.js
Outdated
Show resolved
Hide resolved
@cesarcosta99 This was fixed by @asumaran here, so now it should work, can you try one more time? |
That fixed it 👍 It was not clear if we're going to address the phone requirement here, so I held off the full review for now. Also, we have a new process for handling changelogs and you need to run |
… empty string and set to 'auto'
…ocommerce-gateway-stripe into fix/3851-non-di-blocks-pm
@cesarcosta99 I fixed the phone number issue in e09db26. Can you give a final review? Here's what was happening:
As far as I know, this change shouldn't affect deferred intent payment methods, but cc @wjrosa in case you have thoughts about e09db26 since you mentioned this as well. |
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 and tests well! Thank you for working on the changes!
- Test 1: Successful checkout ✅
- Blocks and shortcode with no phone provided
- Test 2: Checkout with micro deposits verification + delayed notification ✅
- Blocks and shortcode with no phone provided
- Test 3: Disable feature flag ✅
I think it is a nice solution. Thanks for looking into it 👍 |
Fixes #3851
This PR is complementary to #3805.
Changes proposed in this Pull Request:
Testing instructions
Follow testing instructions from #3805, but using the blocks checkout.
changelog.txt
andreadme.txt
(or does not apply)Post merge