Skip to content
Code-Schnipsel Gruppen Projekte
Commit 474206a5 erstellt von Patrick Müller's avatar Patrick Müller
Dateien durchsuchen

refactor: if subscription details cannot be requested -> assume a subscription is active

Übergeordneter f227d12c
No related branches found
No related tags found
Keine zugehörigen Merge Requests gefunden
......@@ -150,11 +150,15 @@ public function isSubscriptionActiveAtPaymentProvider($subscriptionId)
$data = Subscriptions::getSubscriptionDetails($subscriptionId);
} catch (\Exception $Exception) {
QUI\System\Log::writeException($Exception);
return false;
return true;
}
if (empty($data)) {
return false;
QUI\System\Log::addError(
'Stripe subscription details are empty (ID #'.$subscriptionId.'). Please check manually.'
);
return true;
}
return $data['status'] === StripeSubscription::STATUS_ACTIVE;
......
0% oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren