mirror of
https://github.com/bitwarden/server.git
synced 2025-07-06 02:22:49 -05:00
[fix] Cancel unpaid subscriptions (#2017)
* [refactor] Create a static class for documenting handled stripe webhooks * [fix] Cancel unpaid subscriptions after 4 failed payments
This commit is contained in:
14
src/Billing/Constants/HandledStripeWebhook.cs
Normal file
14
src/Billing/Constants/HandledStripeWebhook.cs
Normal file
@ -0,0 +1,14 @@
|
||||
namespace Bit.Billing.Constants
|
||||
{
|
||||
public static class HandledStripeWebhook
|
||||
{
|
||||
public static string SubscriptionDeleted => "customer.subscription.deleted";
|
||||
public static string SubscriptionUpdated => "customer.subscriptions.updated";
|
||||
public static string UpcomingInvoice => "invoice.upcoming";
|
||||
public static string ChargeSucceeded => "charge.succeeded";
|
||||
public static string ChargeRefunded => "charge.refunded";
|
||||
public static string PaymentSucceeded => "invoice.payment_succeeded";
|
||||
public static string PaymentFailed => "invoice.payment_failed";
|
||||
public static string InvoiceCreated => "invoice.created";
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user