This PR fixes some issues that may happen with staging sites detaching payment methods from production accounts. Basically, some additional checks were added before detaching a payment method (with the new checkout experience enabled).
Testing instructions
Create a WooCommerce Subscription
Subscribe to a service with a test user
Login to the dashboard.stripe.com and confirm that the Customer was created and has a Payment Method in place
Fixes #3582
Changes proposed in this Pull Request:
This PR fixes some issues that may happen with staging sites detaching payment methods from production accounts. Basically, some additional checks were added before detaching a payment method (with the new checkout experience enabled).
Testing instructions
fix/pm-dettachment-in-live-mode
) the payment method will not be detachedchangelog.txt
andreadme.txt
(or does not apply)Post merge
cc @grig-23