Skip to content

Commit

Permalink
Fix expired and failed Apple notifications handling
Browse files Browse the repository at this point in the history
remp/crm#3038
  • Loading branch information
Matefko committed May 21, 2024
1 parent 65092e5 commit 55032b9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Hermes/ServerToServerNotificationV2WebhookHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,10 @@ private function process(string $notification): bool
return $this->changeRenewalStatus($transactionInfo, $subType);

case ResponseBodyV2::NOTIFICATION_TYPE__EXPIRED:
$this->handleExpired($transactionInfo);
return null;
return $this->handleExpired($transactionInfo);

case ResponseBodyV2::NOTIFICATION_TYPE__DID_FAIL_TO_RENEW:
$this->handleFailedRenewal($renewalInfo, $subType);
return null;
return $this->handleFailedRenewal($renewalInfo, $subType);

default:
$this->serverToServerNotificationLogRepository->changeStatus(
Expand Down

0 comments on commit 55032b9

Please sign in to comment.