-
Notifications
You must be signed in to change notification settings - Fork 217
Deprecate and remove Legacy Checkout instances #4718
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
Deprecate and remove Legacy Checkout instances #4718
Conversation
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.
This looks good. I could not find any other instantiation of the Legacy gateway.
I think we should also update the test suite accordingly. It's still being used in these 4 test files:
- WC_Stripe_Payment_Gateway_Test.php
- WC_REST_Stripe_Settings_Controller_Test.php
- WC_Stripe_Settings_Controller_Test.php
- WC_Stripe_Express_Checkout_Helper_Test.php
Thanks for the review, Diego! I removed all references from the unit tests in df553ae |
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.
Changes LGTM! I have some feedback/commentary, but none of it requires immediate action.
* Gateway instance that the controller uses. | ||
* | ||
* @var WC_Gateway_Stripe | ||
* @var WC_Stripe_UPE_Payment_Gateway |
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.
Non-blocking style note: I prefer using the fully-qualified class name so it's easier to see exactly which class is in use, especially in diffs. I think we should discuss this as a team before making changes to any code, though.
* @var WC_Stripe_UPE_Payment_Gateway | |
* @var \WC_Stripe_UPE_Payment_Gateway |
https://github.com/woocommerce/woocommerce-gateway-stripe into update/deprecate-and-remove-legacy-checkout-instances
Fixes STRIPE-524
Changes proposed in this Pull Request:
This PR removes some unnecessary instantiations of the legacy checkout, as UPE is now the only option available. I am also deprecating the main legacy gateway class to make it easier to remove other references to it later.
Testing instructions
update/deprecate-and-remove-legacy-checkout-instances
)upe_checkout_experience_enabled
is set toyes
Changelog entry
Changelog Entry Comment
Comment
Post merge