1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-04 17:42:49 -05:00

display names for enums

This commit is contained in:
Kyle Spearrin
2019-02-26 12:37:29 -05:00
parent b042fc5543
commit 91bbc3e8f9
3 changed files with 23 additions and 3 deletions

View File

@ -1043,7 +1043,12 @@ namespace Bit.Core.Services
if(!string.IsNullOrWhiteSpace(subscriber.GatewayCustomerId))
{
var customer = await customerService.GetAsync(subscriber.GatewayCustomerId);
Customer customer = null;
try
{
customer = await customerService.GetAsync(subscriber.GatewayCustomerId);
}
catch(StripeException) { }
if(customer != null)
{
billingInfo.Balance = customer.AccountBalance / 100M;