Skip to content

Commit

Permalink
fix: we should not return true in cart_supports_checkout if the c…
Browse files Browse the repository at this point in the history
…art is empty
  • Loading branch information
Marcuzz committed Nov 14, 2024
1 parent 7ad0b92 commit 602d545
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 @@ -3,7 +3,7 @@ Contributors: EverydayAS
Tags: vipps, mobilepay, recurring payments, subscriptions, woocommerce subscriptions
Requires at least: 5.0
Tested up to: 6.7
Stable tag: 2.0.7
Stable tag: 2.0.8
Requires PHP: 7.4
License: AGPLv3.0 or later
License URI: https://www.gnu.org/licenses/agpl-3.0.html
Expand Down Expand Up @@ -162,6 +162,9 @@ Alternatively you could look into using WooCommerce "Early renewals": [https://d

== Changelog ==

= 2.0.8 =
* Fixed: We should not return `true` in `cart_supports_checkout` if the cart is empty.

= 2.0.7 =
* Fixed: Renewal orders that come from subscriptions made via Checkout could get stuck as "pending", even though a charge was actually created. Updating to this version fixes the affected orders and their statuses.

Expand Down
2 changes: 1 addition & 1 deletion includes/wc-gateway-vipps-recurring.php
Original file line number Diff line number Diff line change
Expand Up @@ -2488,7 +2488,7 @@ public function cart_supports_checkout( $cart = null ) {
}

if ( ! $cart ) {
return true;
return false;
}

# Not supported by Vipps MobilePay Checkout
Expand Down
4 changes: 2 additions & 2 deletions woo-vipps-recurring.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Description: Offer recurring payments with Vipps MobilePay for WooCommerce Subscriptions
* Author: Everyday AS
* Author URI: https://everyday.no
* Version: 2.0.7
* Version: 2.0.8
* Requires Plugins: woocommerce
* Requires at least: 6.1
* Tested up to: 6.7
Expand All @@ -18,7 +18,7 @@

// phpcs:disable WordPress.Files.FileName

define( 'WC_VIPPS_RECURRING_VERSION', '2.0.7' );
define( 'WC_VIPPS_RECURRING_VERSION', '2.0.8' );

/**
* Polyfills
Expand Down

0 comments on commit 602d545

Please sign in to comment.