-
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
Update Subscriptions with WooPayments eligibility as we move to deprecate this functionality #7117
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: +14 B (0%) Total Size: 1.41 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've tested the following:
- Upgrading a site that is eligible for wcpay subscriptions
- Upgrading a site that isn't eligible for wcpay subscriptions has the feature disabled
- Test the setting isn't shown on stores that aren't eligible
@mattallan there's a conflict on this PR due to the changes 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.
Works for me and changes look good.
- Not eligible - No subscriptions or products
- Eligible
- Subscription
- Product
- Upgrade flow. Enabled → updated → not eligible → disabled
- Upgrade flow. Enabled → updated → eligible → enabled
- Setting hidden when Woo Subscriptions is active.
Fixes #6510
Changes proposed in this Pull Request
As part of the Subscriptions Primary Offering project, we need to deprecate the existing WCPay Subscriptions feature so that merchants can opt into the new subscriptions setting.
In this PR we are updating the eligibility of the WCPay Subscriptions so that we:
To meet these new requirements I've changed
is_wcpay_subscriptions_eligible()
to only return true when:Testing instructions
Testing this PR requires toggling the following:
_wcpay_subscription_id
metadata)With that information, here are the testing instructions to toggle through most of the new eligibility cases:
_wcpay_subscription_id
to something like_wcpay_subscription_id_test
_wcpay_subscription_id
meta.With these instructions I have tested the following cases:
__wcpay_subscriptions_id
meta (including pending, canceled, on-hold etc.)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