Skip to content

Commit

Permalink
Fix issue with stripe and new external payments feature
Browse files Browse the repository at this point in the history
  • Loading branch information
iverok committed Jun 7, 2024
1 parent d2d2b13 commit 46088f7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
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');
$possibly_address = WC()->session?->get('vc_address');

if (!$possibly_address) return $fields;
WC()->session->set('vc_address', null);

Expand Down
10 changes: 7 additions & 3 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions woo-vipps.php
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 46088f7

Please sign in to comment.