Skip to content

Commit

Permalink
Release 1.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
alberto-wallee committed Dec 7, 2023
1 parent 4405f9a commit 55c1db5
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ This repository contains the wallee Subscriptions addon that enables WooCommerce

## License

Please see the [license file](https://github.com/wallee-payment/woocommerce-subscription/blob/1.1.2/LICENSE) for more information.
Please see the [license file](https://github.com/wallee-payment/woocommerce-subscription/blob/1.1.3/LICENSE) for more information.

3 changes: 3 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,6 @@ Bug fix, if space_view_id is not set, it does not send it to the service portal.
- Wordpress: 6.1
- Woocommerce: 6.7.0

= 1.1.3 - December 6, 2023 =
- [BugFix] Allow changing payment method for active subscriptions with latest woo-subscriptions

2 changes: 1 addition & 1 deletion docs/en/documentation.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ <h2>Documentation</h2> </div>
</a>
</li>
<li>
<a href="https://github.com/wallee-payment/woocommerce-subscription/releases/tag/1.1.2/">
<a href="https://github.com/wallee-payment/woocommerce-subscription/releases/tag/1.1.3/">
Source
</a>
</li>
Expand Down
1 change: 1 addition & 0 deletions includes/class-wc-wallee-subscription-gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ public function store_gateway_result_in_globals( $result, $subscription ) {
* @return mixed|void
*/
public function create_json_response( $location, $status ) {
$location = basename($location);
if ( 'wc_wallee_subscription_redirect' == $location && isset( $GLOBALS['_wc_wallee_subscription_gateway_result'] ) ) {
wp_send_json( $GLOBALS['_wc_wallee_subscription_gateway_result'] );
exit;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ class WC_Wallee_Subscription_Service_Transaction extends WC_Wallee_Service_Trans
* @param int $token_id Token id.
*
* @return \Wallee\Sdk\Model\Transaction
* @throws Exception
* If the transaction being created is not valid.
*/
public function create_transaction_by_renewal_order( WC_Order $order, $order_total, $token_id ) {
$space_id = get_option( WooCommerce_Wallee::CK_SPACE_ID );
Expand All @@ -43,6 +45,9 @@ public function create_transaction_by_renewal_order( WC_Order $order, $order_tot
$this->set_modified_order_line_items( $order, $order_total, $create_transaction );

$create_transaction = apply_filters( 'wc_wallee_subscription_create_transaction', $create_transaction, $order );
if (!$create_transaction->valid()) {
throw new Exception("The transaction you are trying to create is not valid.");
}
$transaction = $this->get_transaction_service()->create( $space_id, $create_transaction );
$this->update_transaction_info( $transaction, $order );
return $transaction;
Expand Down
11 changes: 3 additions & 8 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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: 6.0.1
Stable tag: 1.1.2
Stable tag: 1.1.3
License: Apache 2
License URI: http://www.apache.org/licenses/LICENSE-2.0

Expand Down Expand Up @@ -49,10 +49,5 @@ Therefore, it is necessary that you install the this plugin as well.

== Changelog ==

## Bugfixes:
- Travis file fix, no changes made to the plugin codebase

## Tested against:
- PHP 7.4.32
- Wordpress: 6.1
- Woocommerce: 6.7.0
= 1.1.3 - December 6, 2023 =
- [BugFix] Allow changing payment method for active subscriptions with latest woo-subscriptions
4 changes: 2 additions & 2 deletions woocommerce-wallee-subscription.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: wallee Subscription
* Plugin URI: https://wordpress.org/plugins/woo-wallee-subscription
* Description: Addon to process WooCommerce Subscriptions with wallee
* Version: 1.1.2
* Version: 1.1.3
* License: Apache2
* License URI: http://www.apache.org/licenses/LICENSE-2.0
* Author: wallee AG
Expand Down Expand Up @@ -36,7 +36,7 @@ final class WooCommerce_Wallee_Subscription {
*
* @var string
*/
private $version = '1.1.2';
private $version = '1.1.3';

/**
* The single instance of the class.
Expand Down

0 comments on commit 55c1db5

Please sign in to comment.