コード例 #1
0
        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));
        }
コード例 #2
0
        public async Task <IActionResult> GetBuyerAccount([FromRoute] Guid organizationId)
        {
            var account = await _buyerService.GetBuyerAccount(_customer);

            return(Ok(account));
        }