feat: Disable projects on failed payment

This commit is contained in:
Dries Augustyns
2026-04-01 18:07:08 +02:00
parent 6f99d4190c
commit 3343e891bd
4 changed files with 131 additions and 4 deletions
+11
View File
@@ -170,6 +170,17 @@ export class NtfyService {
]);
}
/**
* Notify about project disabled due to payment failure
*/
public static async notifyProjectDisabledForPayment(projectName: string, projectId: string): Promise<void> {
await this.sendUrgent(
'Project Disabled - Payment Failed',
`Project "${projectName}" (${projectId}) was automatically disabled due to a failed recurring payment`,
[NtfyTag.WARNING, NtfyTag.MONEY, NtfyTag.ERROR],
);
}
/**
* Notify about successful invoice payment - MIN priority (routine)
*/