-
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
Place Woopay “Direct Checkout” Behind a Feature Flag #8088
Place Woopay “Direct Checkout” Behind a Feature Flag #8088
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: 0 B 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.
I was able to test this feature flag out locally after getting some local domain issues resolved (couldn't use just localhost
as my WooPay domain, set up a hosts file entry for woopay.test
instead).
A couple things I tested:
- ✅ Test with
_wcpay_feature_woopay_direct_checkout
flag enabled (yes redirect) - ✅ Test with
_wcpay_feature_woopay_first_party_auth
flag disabled (no redirect) - ✅ Test with WooPay overall disabled (no redirect)
- ✅ Test with an adapated extension enabled (Gift Cards) (no redirect)
This hits on all the main test scenarios from what I can tell and they all worked as expected. The code changes are also following other feature patterns and looked good!
Marking as blocked so that we don't merge until #7890 is ready. |
@bborman22, this PR is independent enough from #7890 to be merged independently, so I don't have a preference; either way, works. Although, if we decide to merge this branch (i.e. |
Good call. In general, I think I'd prefer this PR gets merged into |
This is a great call-out. This also applies when switching between commits in the repo. With this said, I agree that it's better to merge this branch into the |
Fixes 2445-gh-Automattic/woopay
Changes proposed in this Pull Request
_wcpay_feature_woopay_direct_checkout
option feature flag.Testing instructions
_wcpay_feature_woopay_direct_checkout
set to1
.0
and ensure the user is always redirected to the merchant checkout._wcpay_feature_woopay_direct_checkout
to1
and_wcpay_feature_woopay_first_party_auth
to0
and ensure the user is always redirected to the merchant checkout.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