An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
update payment webhook
Andras Bacsai67edce06121e
diff --git a/routes/webhooks.php b/routes/webhooks.phpindex 5d9257094e..a724e8e70c 100644--- a/routes/webhooks.php+++ b/routes/webhooks.php@@ -262,7 +262,10 @@ Route::post('/payments/stripe/events', function () {break;case 'invoice.payment_failed':$customerId = data_get($data, 'customer');- $subscription = Subscription::where('stripe_customer_id', $customerId)->firstOrFail();+ $subscription = Subscription::where('stripe_customer_id', $customerId)->first();+ if (!$subscription) {+ return;+ }SubscriptionInvoiceFailedJob::dispatch($subscription->team);break;case 'customer.subscription.updated':