diff --git a/README.md b/README.md
index c176a71..d84abca 100644
--- a/README.md
+++ b/README.md
@@ -15,5 +15,5 @@ This repository contains the wallee WooCommerce Subscriptions addon that enables
## License
-Please see the [license file](https://github.com/wallee-payment/woocommerce-subscription/blob/1.0.13/LICENSE) for more information.
+Please see the [license file](https://github.com/wallee-payment/woocommerce-subscription/blob/1.0.14/LICENSE) for more information.
diff --git a/changelog.txt b/changelog.txt
index ba97200..7e1a2bf 100644
--- a/changelog.txt
+++ b/changelog.txt
@@ -16,6 +16,8 @@ test release
readme updates
+Bug fix, if space_view_id is not set, it does not send it to the service portal.
+
= 1.0.2 - March 19, 2019 =
* Fix - WooCommerce Subscription > 2.5.0
diff --git a/docs/en/documentation.html b/docs/en/documentation.html
index 3d698f0..68a1b4b 100644
--- a/docs/en/documentation.html
+++ b/docs/en/documentation.html
@@ -22,7 +22,7 @@
Documentation
-
+
Source
diff --git a/includes/service/class-wc-wallee-subscription-service-transaction.php b/includes/service/class-wc-wallee-subscription-service-transaction.php
index f6607af..9896411 100644
--- a/includes/service/class-wc-wallee-subscription-service-transaction.php
+++ b/includes/service/class-wc-wallee-subscription-service-transaction.php
@@ -20,7 +20,10 @@ public function create_transaction_by_renewal_order(WC_Order $order, $order_tota
$space_id = get_option(WooCommerce_Wallee::CK_SPACE_ID);
$create_transaction = new \Wallee\Sdk\Model\TransactionCreate();
$create_transaction->setCustomersPresence(\Wallee\Sdk\Model\CustomersPresence::VIRTUAL_PRESENT);
- $create_transaction->setSpaceViewId(get_option(WooCommerce_Wallee::CK_SPACE_VIEW_ID));
+ $space_view_id = get_option(WooCommerce_Wallee::CK_SPACE_VIEW_ID);
+ if (is_numeric($space_view_id)) {
+ $create_transaction->setSpaceViewId($space_view_id);
+ }
$create_transaction->setToken($token_id);
$this->assemble_order_transaction_data($order, $create_transaction);
$this->set_modified_order_line_items($order, $order_total, $create_transaction);
diff --git a/readme.txt b/readme.txt
index 3380048..5c51d23 100644
--- a/readme.txt
+++ b/readme.txt
@@ -3,7 +3,7 @@ Contributors: customwebgmbh
Tags: woocommerce wallee, woocommerce, wallee, payment, e-commerce, webshop, psp, subscription, recurring payment, processing
Requires at least: 4.7
Tested up to: 5.7.2
-Stable tag: 1.0.13
+Stable tag: 1.0.14
License: Apache 2
License URI: http://www.apache.org/licenses/LICENSE-2.0
@@ -49,4 +49,4 @@ Therefore, it is necessary that you install the this plugin as well.
== Changelog ==
-readme updates
+Bug fix, if space_view_id is not set, it does not send it to the service portal.
diff --git a/woocommerce-wallee-subscription.php b/woocommerce-wallee-subscription.php
index 69e398c..ac361e0 100644
--- a/woocommerce-wallee-subscription.php
+++ b/woocommerce-wallee-subscription.php
@@ -3,7 +3,7 @@
* Plugin Name: WooCommerce wallee Subscription
* Plugin URI: https://wordpress.org/plugins/woo-wallee-subscription
* Description: Addon to processs WooCommerce Subscriptions with wallee
- * Version: 1.0.13
+ * Version: 1.0.14
* License: Apache2
* License URI: http://www.apache.org/licenses/LICENSE-2.0
* Author: customweb GmbH
@@ -36,7 +36,7 @@ final class WooCommerce_Wallee_Subscription
*
* @var string
*/
- private $version = '1.0.13';
+ private $version = '1.0.14';
/**
* The single instance of the class.