1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-18 16:11:28 -05:00

expand sources and tax_ids for stripe api 2020-08-27 (#2199)

This commit is contained in:
Kyle Spearrin
2022-08-17 14:39:21 -04:00
committed by GitHub
parent 4b144f4cda
commit 13d1e74d69
2 changed files with 6 additions and 2 deletions

View File

@ -549,7 +549,8 @@ namespace Bit.Core.Services
var bankService = new BankAccountService();
var customerService = new CustomerService();
var customer = await customerService.GetAsync(organization.GatewayCustomerId);
var customer = await customerService.GetAsync(organization.GatewayCustomerId,
new CustomerGetOptions { Expand = new List<string> { "sources" } });
if (customer == null)
{
throw new GatewayException("Cannot find customer.");