Skip to content

Commit 36b4198

Browse files
authored
Disabling the detached subscriptions notice (#4065)
* Disabling the detached subscriptions notice
1 parent 37be477 commit 36b4198

File tree

3 files changed

+16
-47
lines changed

3 files changed

+16
-47
lines changed

changelog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
*** Changelog ***
22

3+
= 9.3.1 - xxxx-xx-xx =
4+
* Fix - Temporarily disables the subscriptions detached notice feature due to long loading times on stores with too many subscriptions.
5+
36
= 9.3.0 - 2025-03-13 =
47
* Dev - Adds a new README.md file to the plugin with specific development-focused instructions.
58
* Add - Implements the Single Payment Element feature for the new checkout experience on the block checkout page.

includes/admin/class-wc-stripe-admin-notices.php

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -469,22 +469,30 @@ public function payment_methods_check_environment() {
469469
* @return void
470470
*/
471471
public function subscriptions_check_environment() {
472+
// @todo Temporarily disabling this due long load times on stores with too many subscriptions.
473+
return;
474+
475+
$show_notice = get_option( 'wc_stripe_show_subscriptions_notice' );
476+
if ( 'yes' !== $show_notice ) {
477+
return;
478+
}
479+
472480
$detached_messages = '';
473481
$subscriptions = WC_Stripe_Subscriptions_Helper::get_detached_subscriptions();
474482
foreach ( $subscriptions as $subscription ) {
475483
$customer_payment_method_link = sprintf(
476484
'<a href="%s">%s</a>',
477485
esc_url( $subscription['change_payment_method_url'] ),
478486
esc_html(
479-
/* translators: this is a text for a link pointing to the customer's payment method page */
487+
/* translators: this is a text for a link pointing to the customer's payment method page */
480488
__( 'this link &rarr;', 'woocommerce-gateway-stripe' )
481489
)
482490
);
483491
$customer_stripe_page = sprintf(
484492
'<a href="%s">%s</a>',
485493
esc_url( self::STRIPE_CUSTOMER_PAGE_BASE_URL . $subscription['customer_id'] ),
486494
esc_html(
487-
/* translators: this is a text for a link pointing to the customer's page on Stripe */
495+
/* translators: this is a text for a link pointing to the customer's page on Stripe */
488496
__( 'here &rarr;', 'woocommerce-gateway-stripe' )
489497
)
490498
);
@@ -496,8 +504,7 @@ public function subscriptions_check_environment() {
496504
$customer_stripe_page
497505
);
498506
}
499-
$show_notice = get_option( 'wc_stripe_show_subscriptions_notice' );
500-
if ( ! empty( $detached_messages ) && 'no' !== $show_notice ) {
507+
if ( ! empty( $detached_messages ) ) {
501508
$this->add_admin_notice( 'subscriptions', 'notice notice-error', $detached_messages, true );
502509
}
503510
}

readme.txt

Lines changed: 2 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -110,48 +110,7 @@ If you get stuck, you can ask for help in the [Plugin Forum](https://wordpress.o
110110

111111
== Changelog ==
112112

113-
= 9.3.0 - 2025-03-13 =
114-
* Dev - Adds a new README.md file to the plugin with specific development-focused instructions.
115-
* Add - Implements the Single Payment Element feature for the new checkout experience on the block checkout page.
116-
* Dev - Additional replacements for payment method constant values on the backend.
117-
* Fix - Improves the checking for existing customer attribute when retrieving a payment method that may be detached from a subscription.
118-
* Fix - Reverts the default value for the `capture_method` property to avoid breaking Amazon Pay when creating a payment intent.
119-
* Add - Adds a new feature flag to handle the Single Payment Element feature.
120-
* Dev - Moves the method to check if the subscriptions extension is enabled to a new helper class.
121-
* Dev - Moves and refactor some of the UPE-related code to make Single Payment Element development easier.
122-
* Add - Add logging of IP address issues when setting up mandate data.
123-
* Fix - Fixes a fatal error that might happen when a payment method ID cannot be retrieved during the processing of an order (new checkout experience).
124-
* Dev - Generates a code coverage report for PHP Unit tests as a comment on PRs.
125-
* Add - Adds Stripe specific information to the System Status Report data.
126-
* Fix - Fixes a fatal error that might happen during extension install due to missing Amazon Pay default settings data, when registering the settings route.
127-
* Dev - Adds the payment method constants to the payment methods map file (frontend side).
128-
* Add - Adds a new notice for store admins when there are subscriptions without a payment method attached.
129-
* Fix - Hides "pay" and "cancel" buttons on the order received page when an Amazon Pay order is pending, since it may take a while to be confirmed.
130-
* Fix - Prepare the redirect URL at the end of 'process_payment' method.
131-
* Fix - Fix uncaught error in block editor when the new checkout experience is enabled.
132-
* Fix - Fix error when processing a subscription via Amazon Pay.
133-
* Fix - Make Amazon Pay compatible with upfront pre-orders.
134-
* Add - Include minimum amounts in the capture_terminal_payment endpoint when a capture fails.
135-
* Dev - Fix changelog action
136-
* Tweak - Map feature flags into a standard array for easier maintenance.
137-
* Dev - Fix QIT Tests GitHub workflow.
138-
* Fix - Fix issue where payment methods do not refresh after address changes.
139-
* Add - Bacs: Process Payment with Saved Bank Details
140-
* Tweak - Update payment method logos on the checkout page.
141-
* Update - Refactor unsupported deferred intent in the blocks checkout.
142-
* Add - Use idempotency keys when creating payment intents, to help prevent duplicate charges for a single order.
143-
* Fix - Allow to save card during checkout with account creation.
144-
* Add - Add BLIK LPM feature flag.
145-
* Fix - Skip unnecessary save step when already using a saved payment method for legacy checkout.
146-
* Fix - Avoid duplicate payment method element for classic checkout.
147-
* Fix - ACSS: Handle errors and edge cases.
148-
* Add - Add subscriptions support to Bacs.
149-
* Update - Add tracks events for payment method settings updates.
150-
* Fix - Fix issue where Legacy Checkout settings get overwritten with old value.
151-
* Add - Add WooCommerce Pre-Orders support to Bacs.
152-
* Tweak - Fix background in express checkout settings.
153-
* Fix - Prevent potential duplicate renewal charges by ensuring subscription integration hooks are only attached once per Gateway ID
154-
* Update - Update Amazon Pay icon to use image from WooCommerce Design Library.
155-
* Add - Show upcoming legacy checkout experience deprecation notice.
113+
= 9.3.1 - xxxx-xx-xx =
114+
* Fix - Temporarily disables the subscriptions detached notice feature due to long loading times on stores with too many subscriptions.
156115

157116
[See changelog for all versions](https://raw.githubusercontent.com/woocommerce/woocommerce-gateway-stripe/trunk/changelog.txt).

0 commit comments

Comments
 (0)