-
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
Add PRBs support for express_checkout_enabled
settings while detecting duplicates
#8744
Add PRBs support for express_checkout_enabled
settings while detecting duplicates
#8744
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.25 MB ℹ️ View Unchanged
|
express_checkout_enabled
settings while detecting duplicates
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 wasn't getting the notice at first. After digging around in the settings, I found dismissedDupliateNotices
contained apple_pay_google_pay
from testing on the original duplicate notices PR. This dismissed notice was triggered from a different Stripe plugin. After clearing the dismissed notices, this works as described, so LGTM!
It does raise the question of whether we should have some type of identifier for each notice based on the plugin from which it was generated. I'm imagining a scenario where a notice is dismissed, then later another plugin is installed which duplicates a payment method but no notice is displayed due to earlier dismissal. Just a thought for future improvement to the duplication service and not related to this PR.
🚢
Fair point @mdmoore, I'll create an issue for this to gather more feedback and decisions 👍 |
Closes #8741
Changes proposed in this Pull Request
This PR adds support for detecting PRBs enabled by plugins which use the
express_checkout_enabled
settings to manage the PRB enablement.So far, there's only one plugin we're aware of (see more details in the parent issue), but there might be more.
Testing instructions
Enable Stripe Gateway
underpage=wc-settings&tab=checkout§ion=cpsw_stripe
andActivate Express Checkout
under?page=wc-settings&tab=checkout§ion=cpsw_express_checkout
?page=wc-settings&tab=checkout§ion=cpsw_express_checkout
and the notice is gone againnpm 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