fix: do not send telegram noti on intent payment failed
This commit is contained in:
parent
6f97af096d
commit
771dc30b81
@ -640,7 +640,9 @@ Route::post('/payments/stripe/events', function () {
|
|||||||
// Unhandled event type
|
// Unhandled event type
|
||||||
}
|
}
|
||||||
} catch (Exception $e) {
|
} 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([
|
$webhook->update([
|
||||||
'status' => 'failed',
|
'status' => 'failed',
|
||||||
'failure_reason' => $e->getMessage(),
|
'failure_reason' => $e->getMessage(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user