Skip to content

Commit

Permalink
Recommend WooPayments when there is no available payment gateway (#766)
Browse files Browse the repository at this point in the history
* Recommend WooPayments when there is no available payment gateway

* Add changelog entry

* Remove duplicated link

* Fix changelog entry

* Update includes/admin/class-wc-subscriptions-admin.php

Co-authored-by: Matt Allan <[email protected]>

---------

Co-authored-by: Matt Allan <[email protected]>
  • Loading branch information
alefesouza and mattallan authored Jan 21, 2025
1 parent 418e032 commit 5569c09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
*** WooCommerce Subscriptions Core Changelog ***

= 8.0.0 - xxxx-xx-xx =
* Fix - Recommend WooPayments when there is no available payment gateway.
* Fix - Safeguards added to the Subscriptions Totals template used in the My Account area, to guard against fatal errors that could arise in unusual conditions.
* Fix - Correctly load product names with HTML on the cart and checkout shipping rates.

Expand Down
2 changes: 1 addition & 1 deletion includes/admin/class-wc-subscriptions-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -1893,7 +1893,7 @@ public static function add_recurring_payment_gateway_information( $settings ) {

if ( ! $payment_gateways_handler::one_gateway_supports( 'subscriptions' ) ) {
// translators: $1-2: opening and closing tags of a link that takes to Woo marketplace / Stripe product page
$available_gateways_description = sprintf( __( 'No payment gateways capable of processing automatic subscription payments are enabled. If you would like to process automatic payments, we recommend the %1$sfree Stripe extension%2$s.', 'woocommerce-subscriptions' ), '<strong><a href="https://www.woocommerce.com/products/stripe/">', '</a></strong>' );
$available_gateways_description = sprintf( __( 'No payment gateways capable of processing automatic subscription payments are enabled. If you would like to process automatic payments, we recommend %1$sWooPayments%2$s.', 'woocommerce-subscriptions' ), '<strong><a href="https://woocommerce.com/payments/">', '</a></strong>' );
}

$recurring_payment_settings = apply_filters(
Expand Down

0 comments on commit 5569c09

Please sign in to comment.