From dc4d3420c4223c7614c316f1837b53585fa8e7df Mon Sep 17 00:00:00 2001 From: Peter Nguyen Date: Fri, 5 Aug 2022 10:33:20 +0700 Subject: [PATCH 1/2] [IDIT-134] change status for cancel subscription --- src/includes/class-paymentwall-gateway.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/includes/class-paymentwall-gateway.php b/src/includes/class-paymentwall-gateway.php index d342f6a..1138409 100644 --- a/src/includes/class-paymentwall-gateway.php +++ b/src/includes/class-paymentwall-gateway.php @@ -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); From 82aaa20581613514ecaaabc374fd16ee33d93ddc Mon Sep 17 00:00:00 2001 From: Peter Nguyen Date: Thu, 11 Aug 2022 16:26:47 +0700 Subject: [PATCH 2/2] update changelog --- readme.txt | 3 +++ src/paymentwall-for-woocommerce.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/readme.txt b/readme.txt index 64f61a2..b65b8d2 100644 --- a/readme.txt +++ b/readme.txt @@ -37,6 +37,9 @@ View our full installation guide: