Skip to content

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.

fix: do not send telegram noti on intent payment failed

Andras Bacsai771dc30b813b
diff --git a/routes/webhooks.php b/routes/webhooks.php
index 17efae2d27..92280bf21e 100644
--- a/routes/webhooks.php
+++ b/routes/webhooks.php
@@ -640,7 +640,9 @@ Route::post('/payments/stripe/events', function () {
// Unhandled event type
}
} catch (Exception $e) {
- send_internal_notification("Subscription webhook ($type) failed: " . $e->getMessage());
+ if ($type !== 'payment_intent.payment_failed') {
+ send_internal_notification("Subscription webhook ($type) failed: " . $e->getMessage());
+ }
$webhook->update([
'status' => 'failed',
'failure_reason' => $e->getMessage(),