Skip to content

Commit

Permalink
Merge branch 'dev-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
mason authored and mason committed Aug 11, 2022
2 parents c124193 + d942cbb commit c122d7e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ View our full installation guide: <https://docs.paymentwall.com/modules/woocomme

== Changelog ==

= v1.12.0 [08/11/2022] =
* Correct subscription status

= v1.11.0 [07/12/2022] =
* Support subscription cancellation

Expand Down
4 changes: 2 additions & 2 deletions src/includes/class-paymentwall-gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,8 @@ function ipn_response() {
$pingback->getType() == Paymentwall_Pingback::PINGBACK_TYPE_SUBSCRIPTION_CANCELLATION
&& !empty($subscription)
) {
$subscription->update_status('cancelled');
$order->update_status('cancelled');
$subscription->update_status('wc-pending-cancel');
$order->update_status('completed');
}

die(PW_DEFAULT_SUCCESS_PINGBACK_VALUE);
Expand Down
2 changes: 1 addition & 1 deletion src/paymentwall-for-woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Plugin Name: Paymentwall for WooCommerce
* Plugin URI: https://docs.paymentwall.com/modules/woocommerce
* Description: Official Paymentwall module for WordPress WooCommerce.
* Version: 1.11.0
* Version: 1.12.0
* Author: The Paymentwall Team
* Author URI: http://www.paymentwall.com/
* Text Domain: paymentwall-for-woocommerce
Expand Down

0 comments on commit c122d7e

Please sign in to comment.