-
Notifications
You must be signed in to change notification settings - Fork 10.8k
WPS Migration: Add notice #60263
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
base: feature/paypal-wps-migration
Are you sure you want to change the base?
WPS Migration: Add notice #60263
Conversation
Testing GuidelinesHi @annemirasol , Apart from reviewing the code changes, please make sure to review the testing instructions (Guide) and verify that relevant tests (E2E, Unit, Integration, etc.) have been added or updated as needed. Reminder: PR reviewers are required to document testing performed. This includes:
|
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.
Pull Request Overview
This PR adds a Terms of Service (TOS) notice for PayPal Orders v2 migration that appears on WooCommerce admin pages. The notice requires administrators to accept updated terms before continuing to use PayPal Standard.
- Creates a new notice system for PayPal TOS acceptance with agree/dismiss functionality
- Modifies the PayPal gateway to expose the WPCOM registration method publicly
- Integrates the notice handler into the gateway initialization process
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
File | Description |
---|---|
class-wc-gateway-paypal-notices.php | New file implementing the TOS notice display logic, user action handling, and integration with payments settings page |
class-wc-gateway-paypal.php | Changes method visibility and adds notice handler initialization |
plugins/woocommerce/includes/gateways/paypal/includes/class-wc-gateway-paypal-notices.php
Outdated
Show resolved
Hide resolved
plugins/woocommerce/includes/gateways/paypal/includes/class-wc-gateway-paypal-notices.php
Outdated
Show resolved
Hide resolved
plugins/woocommerce/includes/gateways/paypal/includes/class-wc-gateway-paypal-notices.php
Outdated
Show resolved
Hide resolved
Test using WordPress PlaygroundThe changes in this pull request can be previewed and tested using a WordPress Playground instance. Test this pull request with WordPress Playground. Note that this URL is valid for 30 days from when this comment was last updated. You can update it by closing/reopening the PR or pushing a new commit. |
Submission Review Guidelines:
Changes proposed in this Pull Request:
Closes PAYPAL-32
How to test the changes in this Pull Request:
is_tos_accepted
set in yourwoocommerce_paypal_settings
, set it tono
.Agree
button.wp option get woocommerce_paypal_settings
and confirm thatis_tos_accepted
isyes
.Dismiss
and confirm that the notice is removed. It should not reappear on page refresh.Changelog entry
Changelog Entry Details
Significance
Type
Message
Changelog Entry Comment
Comment