Skip to content

Commit

Permalink
Merge pull request #336 from reepay/pre-1.7.7.1
Browse files Browse the repository at this point in the history
Patch Fix WP warning message WC_Reepay_Renewals
  • Loading branch information
ponddeja authored Aug 7, 2024
2 parents d2c659e + 8058cee commit d1997f6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion Readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Tags: billwerk+, visa, mastercard, dankort, mobilepay
Requires at least: 4.0
Tested up to: 6.5.3
Requires PHP: 7.4
Stable tag: 1.7.7
Stable tag: 1.7.7.1
License: GPL
License URI: http://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html

Expand All @@ -18,6 +18,9 @@ The Billwerk+ Pay plugin extends WooCommerce allowing you to take payments on yo
See installation guide right here: https://docu.billwerk.plus/help/en/apps/woocommerce/setup-woocommerce-plugin.html

== Changelog ==
v 1.7.7.1 -
* [Fix] - WP warning message The use statement with non-compound name WC_Reepay_Renewals has no effect.

v 1.7.7 -
* [Fix] - Missing payment_method_reference data in the Billwerk+ customer_payment_method_added webhook could cause PHP fatal error.
* [Fix] - WooCommerce Subscriptions had issues with change of payment method where orders got payment authorized but were not automatically captured and set to complete.
Expand Down
4 changes: 2 additions & 2 deletions includes/Functions/order.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

use Reepay\Checkout\Utils\TimeKeeper;
use WC_Reepay_Renewals;
use WC_Reepay_Renewals as WCRR;

defined( 'ABSPATH' ) || exit();

Expand Down Expand Up @@ -214,7 +214,7 @@ function rp_get_order_by_customer( string $customer_id ) {
if ( ! empty( $orders ) ) {
$order_id = reset( $orders )->get_id();
$order = wc_get_order( $order_id );
if ( class_exists( WC_Reepay_Renewals::class ) && WC_Reepay_Renewals::is_order_contain_subscription( $order ) || order_contains_subscription( $order ) ) {
if ( class_exists( WCRR::class ) && WCRR::is_order_contain_subscription( $order ) || order_contains_subscription( $order ) ) {
$subscription_order = $order;
}
}
Expand Down
2 changes: 1 addition & 1 deletion reepay-woocommerce-payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Description: Get a plug-n-play payment solution for WooCommerce, that is easy to use, highly secure and is built to maximize the potential of your e-commerce.
* Author: Billwerk+
* Author URI: http://billwerk.plus
* Version: 1.7.7
* Version: 1.7.7.1
* Text Domain: reepay-checkout-gateway
* Domain Path: /languages
* WC requires at least: 3.0.0
Expand Down

0 comments on commit d1997f6

Please sign in to comment.