public async Task <IActionResult> CreateCard([FromRoute] Guid organizationId, [FromBody] CardInputModel input) { var account = await _buyerService.GetBuyerAccount(_customer); if (account == null) { return(BadRequest("buyer account is not setup in stripe")); } var results = await _cardService.AddCustomerCard(account.Id, input); return(Ok(results)); }
public async Task <IActionResult> GetBuyerAccount([FromRoute] Guid organizationId) { var account = await _buyerService.GetBuyerAccount(_customer); return(Ok(account)); }