mirror of
https://github.com/bitwarden/server.git
synced 2025-05-20 11:04:31 -05:00
[PM-17064] 500 error on Free org Upgrade with Saved Payment Method (#5266)
This commit is contained in:
parent
cc2128c97a
commit
adab8e622a
@ -2087,12 +2087,12 @@ public class StripePaymentService : IPaymentService
|
||||
|
||||
if (gatewayCustomer.Discount != null)
|
||||
{
|
||||
options.Discounts.Add(new InvoiceDiscountOptions
|
||||
{
|
||||
Discount = gatewayCustomer.Discount.Id
|
||||
});
|
||||
options.Discounts.Add(new InvoiceDiscountOptions { Discount = gatewayCustomer.Discount.Id });
|
||||
}
|
||||
}
|
||||
|
||||
if (gatewaySubscriptionId != null)
|
||||
{
|
||||
var gatewaySubscription = await _stripeAdapter.SubscriptionGetAsync(gatewaySubscriptionId);
|
||||
|
||||
if (gatewaySubscription?.Discount != null)
|
||||
|
Loading…
x
Reference in New Issue
Block a user