mirror of
https://github.com/bitwarden/server.git
synced 2025-07-06 02:22:49 -05:00
[AC-1508] Stripe changes for the EU datacenter (#3092)
* Added region to customer metadata * Updated webhook to filter out events for other DCs * Flipped ternary to be positive, fixed indentation * Updated to allow for unit testing andupdated tests --------- Co-authored-by: cyprain-okeke <108260115+cyprain-okeke@users.noreply.github.com>
This commit is contained in:
@ -2,12 +2,12 @@
|
||||
|
||||
public static class HandledStripeWebhook
|
||||
{
|
||||
public static string SubscriptionDeleted => "customer.subscription.deleted";
|
||||
public static string SubscriptionUpdated => "customer.subscription.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";
|
||||
public const string SubscriptionDeleted = "customer.subscription.deleted";
|
||||
public const string SubscriptionUpdated = "customer.subscription.updated";
|
||||
public const string UpcomingInvoice = "invoice.upcoming";
|
||||
public const string ChargeSucceeded = "charge.succeeded";
|
||||
public const string ChargeRefunded = "charge.refunded";
|
||||
public const string PaymentSucceeded = "invoice.payment_succeeded";
|
||||
public const string PaymentFailed = "invoice.payment_failed";
|
||||
public const string InvoiceCreated = "invoice.created";
|
||||
}
|
||||
|
Reference in New Issue
Block a user