Skip to content

Commit

Permalink
v2.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
iverok committed Jun 7, 2024
1 parent 46088f7 commit 67ec990
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,6 @@ for more help with Vipps MobilePay eCommerce.
## Requirements

* WooCommerce 3.3.4 or newer is required.
* PHP 5.6 or higher is required.
* PHP 7.0 or higher is required.
* An SSL Certificate is required.
* The port 443 must not be blocked for outward traffic.
3 changes: 2 additions & 1 deletion VippsCheckout.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
if (empty(WC()->session)) return $fields;
$possibly_address = WC()->session->get('vc_address');

if (!$possibly_address) return $fields;
WC()->session->set('vc_address', null);
Expand Down
12 changes: 7 additions & 5 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
Contributors: wphostingdev, iverok, perwilhelmsen, nikolaidev
Tags: woocommerce, vipps, mobilepay
Tags: woocommerce, vipps
Version: 2.1.1
Stable tag: 2.1.1
Version: 2.1.2
Stable tag: 2.1.2
Requires at least: 4.7
Tested up to: 6.5.4
Requires PHP: 5.6
Requires PHP: 7.0
WC requires at least: 3.3.4
WC tested up to: 8.9.2
License: MIT
Expand Down Expand Up @@ -157,7 +157,7 @@ If this isn't practical for your usage, we recommend that you "test in productio

= What are the requirements? =
* WooCommerce 3.3.4 or newer is required
* PHP 5.6 or higher is required.
* PHP 7.0 or higher is required.
* An SSL Certificate is required.

= Filters and Hooks for customization =
Expand Down Expand Up @@ -239,8 +239,10 @@ 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 =
= 2024-06-07 version 2.1.1, 2.1.2 =
Fix issue where session was not active when computing checkout fields
Fix previous fix for older php versions
Bump required php version to 7.0

= 2024-06-05 version 2.1.0 =
Removed support for Instabox in Vipps Checkout Shipping
Expand Down
8 changes: 4 additions & 4 deletions woo-vipps.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
Author URI: https://www.wp-hosting.no/
Text-domain: woo-vipps
Domain Path: /languages
Version: 2.1.1
Stable tag: 2.1.1
Version: 2.1.2
Stable tag: 2.1.2
Requires at least: 4.7
Tested up to: 6.5.4
Requires PHP: 5.6
Requires PHP: 7.0
WC requires at least: 3.3.4
WC tested up to: 8.9.2
Expand Down Expand Up @@ -48,7 +48,7 @@


// Report version externally
define('WOO_VIPPS_VERSION', '2.1.1');
define('WOO_VIPPS_VERSION', '2.1.2');

if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
Expand Down

0 comments on commit 67ec990

Please sign in to comment.