Skip to content

Conversation

@daledupreez
Copy link
Contributor

Fixes STRIPE-751
Related to #4131

Changes proposed in this Pull Request:

This PR detects when we are running on WooCommerce Subscriptions staging sites as a way to detect whether we should detach customers from payment methods. This expands on our previous logic that only looked at the return value from wp_get_environment_type(). This PR does not implement a full fix for the issues flagged in #4131, but it does mean that staging sites using WooCommerce Subscriptions will behave better.

Testing instructions

TBD


  • Covered with tests (or have a good reason not to test in description ☝️)
  • Tested on mobile (or does not apply)

Changelog entry

  • This Pull Request does not require a changelog entry. (Comment required below)
Changelog Entry Comment

Comment

Post merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants