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:
@ -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.");
|
||||
|
Reference in New Issue
Block a user