mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-13 18:15:24 +00:00
fix: do not send telegram noti on intent payment failed
This commit is contained in:
1 parent
6f97af096d
commit
771dc30b81
1 file changed
+3
-1
+3
-1
@@ -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(),
|
||||
|
||||
Reference in new issue
Block a user