Skip to content

Commit

Permalink
Fix cancellations from webhook
Browse files Browse the repository at this point in the history
* BUG FIX: Fixed an issue where cancelled subscriptions would remove the members membership prematurely. It now will only remove the membership once CCBill sends through the "Expiration" webhook which is the end of term.
  • Loading branch information
andrewlimaza committed May 20, 2024
1 parent 755c641 commit 037ff81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webhook.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

break;

case 'Cancellation':
case 'Expiration':

$subscription_id = sanitize_text_field( $response['subscriptionId'] );

Expand Down

0 comments on commit 037ff81

Please sign in to comment.