summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWesley Jones2015-10-25 09:35:54 (GMT)
committerWesley Jones2015-10-25 09:35:54 (GMT)
commitbbeafb8334d89588d0c94c8f819423028cda53c2 (patch)
tree91136a8544c2cd3ce59d757bb3b3313df3afd347
parentc47a8fdc15053b983e487aa56fbedfb081786c9d (diff)
Updating the paypal module to revoke license instead of suspend when it detects a cancellation
-rw-r--r--commerce_license_billing_paypal.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/commerce_license_billing_paypal.module b/commerce_license_billing_paypal.module
index 248dbb0..7d47952 100644
--- a/commerce_license_billing_paypal.module
+++ b/commerce_license_billing_paypal.module
@@ -82,7 +82,7 @@ function commerce_license_billing_paypal_cron() {
$response['STATUS'] == 'Suspended' || $response['STATUS'] == 'Expired') {
// Suspend the license.
- $license->wrapper->status->set(COMMERCE_LICENSE_SUSPENDED);
+ $license->wrapper->status->set(COMMERCE_LICENSE_REVOKED);
$license->save();
// set cycle status to zero and save the cycle