Skip to content

Commit

Permalink
fix: added two new hosts to allowed_redirect_hosts: `pay.mobilepay.…
Browse files Browse the repository at this point in the history
…dk` and `pay.mobilepay.fi`. This fixes a bug where customers were not able to switch to MobilePay
  • Loading branch information
Marcuzz committed Dec 9, 2024
1 parent 23634f3 commit b49166d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 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.1.0
Stable tag: 2.1.1
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.1.1 =
* Fixed: Added two new hosts to `allowed_redirect_hosts`: `pay.mobilepay.dk` and `pay.mobilepay.fi`. This fixes a bug where customers were not able to switch to MobilePay.

= 2.1.0 =
* Fixed: No longer throw an error when checking a Checkout payment where the subscription is now deleted.
* Fixed: Properly handle in-app subscription cancelling.
Expand Down
2 changes: 2 additions & 0 deletions includes/wc-gateway-vipps-recurring.php
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,8 @@ public function __construct() {
add_filter( 'allowed_redirect_hosts', function ( $hosts ) {
$hosts[] = 'api.vipps.no';
$hosts[] = 'apitest.vipps.no';
$hosts[] = 'pay.mobilepay.dk';
$hosts[] = 'pay.mobilepay.fi';

return $hosts;
} );
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.1.0
* Version: 2.1.1
* 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.1.0' );
define( 'WC_VIPPS_RECURRING_VERSION', '2.1.1' );

/**
* Polyfills
Expand Down

0 comments on commit b49166d

Please sign in to comment.