diff --git a/VippsCheckout.class.php b/VippsCheckout.class.php index 0eb7fbf6..48cdfa99 100644 --- a/VippsCheckout.class.php +++ b/VippsCheckout.class.php @@ -805,7 +805,8 @@ public function woocommerce_loaded () { // This is for the 'other payment method' thing in Vipps Checkout - we store address info // in session. IOK 2024-05-13 add_filter('woocommerce_checkout_fields', function ($fields) { - $possibly_address = WC()->session->get('vc_address'); + $possibly_address = WC()->session?->get('vc_address'); + if (!$possibly_address) return $fields; WC()->session->set('vc_address', null); diff --git a/readme.txt b/readme.txt index ea05bc0c..3901cf15 100644 --- a/readme.txt +++ b/readme.txt @@ -2,13 +2,13 @@ Contributors: wphostingdev, iverok, perwilhelmsen, nikolaidev Tags: woocommerce, vipps, mobilepay Tags: woocommerce, vipps -Version: 2.1.0 -Stable tag: 2.1.0 +Version: 2.1.1 +Stable tag: 2.1.1 Requires at least: 4.7 Tested up to: 6.5.4 Requires PHP: 5.6 WC requires at least: 3.3.4 -WC tested up to: 8.9.1 +WC tested up to: 8.9.2 License: MIT License URI: https://choosealicense.com/licenses/mit/ Official Vipps MobilePay payment plugin for WooCommerce. @@ -93,6 +93,7 @@ Shareable links and QR codes can be generated from the Vipps tab on the product This project is hosted on Github at: https://github.com/vippsas/vipps-woocommerce == Upgrade Notice == +Fix issue when using Checkout and Stripe Removed support for Instabox in Vipps Checkout Shipping Added support for external payment methods in some markets Fix an issue with addressline 2 for express checkout when using static shipping @@ -238,6 +239,9 @@ From version 1.1.13 you can also modify the javascript using the new WP hooks li == Changelog == += 2024-06-07 version 2.1.1 = +Fix issue where session was not active when computing checkout fields + = 2024-06-05 version 2.1.0 = Removed support for Instabox in Vipps Checkout Shipping Added support for external payment methods in some markets diff --git a/woo-vipps.php b/woo-vipps.php index 49244397..a9c0eb2e 100644 --- a/woo-vipps.php +++ b/woo-vipps.php @@ -7,13 +7,13 @@ Author URI: https://www.wp-hosting.no/ Text-domain: woo-vipps Domain Path: /languages - Version: 2.1.0 - Stable tag: 2.1.0 + Version: 2.1.1 + Stable tag: 2.1.1 Requires at least: 4.7 Tested up to: 6.5.4 Requires PHP: 5.6 WC requires at least: 3.3.4 - WC tested up to: 8.9.1 + WC tested up to: 8.9.2 License: MIT License URI: https://choosealicense.com/licenses/mit/ @@ -48,7 +48,7 @@ // Report version externally -define('WOO_VIPPS_VERSION', '2.1.0'); +define('WOO_VIPPS_VERSION', '2.1.1'); if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly