-
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
Refactor the Woopay Checkout Flow UX #8133
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: +21 B (0%) Total Size: 1.27 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.
LGTM! I tested all scenarios with classic and Blocks checkouts and all passed 💯
- Scenario 1: Pre-populated Email Without Auto-Redirect
- With feature flag enabled the OTP modal is not displayed and user is not redirected ✅
- With feature flag disabled the OTP modal is displayed, and user is redirected to the WooPay checkout if they're authed ✅
- Scenario 2: Active Email Entry With WooPay Account
- With feature flag enabled ✅
- If user is authed, the user is redirected to the WooPay checkout ✅
- If user is not authed, the OTP modal is displayed ✅
- With feature flag disabled ✅
- Same as with feature flag enabled ✅
- With feature flag enabled ✅
- Scenario 3: Active Email Entry Without WooPay Account
- With feature flag enabled the OTP modal is not displayed and user is not redirected ✅
- With feature flag disabled the OTP modal is not displayed and user is not redirected ✅
All the testing confirms that all the acceptance criteria are met ✅
Fixes 2448-gh-Automattic/woopay
Changes proposed in this Pull Request
Modifies the conditions under which shoppers are redirected to the WooPay checkout page or prompted with the OTP modal.
Testing instructions
Precondition: Enable the direct checkout feature flag.
npm run wp option update _wcpay_feature_woopay_direct_checkout 1
Scenario 1: Pre-populated Email Without Auto-Redirect
Scenario 2: Active Email Entry With WooPay Account
Scenario 3: Active Email Entry Without WooPay Account
Scenario 4: Feature Flag Dependency
npm run wp option update _wcpay_feature_woopay_direct_checkout 0
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