Exemplo n.º 1
0
        public async Task <IActionResult> StripeSessionTest()
        {
            var userUid = GetUserUid();

            if (userUid == Guid.Empty)
            {
                return(Unauthorized());
            }
            string sessionId;

            try
            {
                sessionId = await _stripeService.CreateSessionTest().ConfigureAwait(false);
            }
            catch (Exception ex)
            {
                logger.LogError(ex.Message, ex);
                return(BadRequest());
            }

            return(Ok(sessionId));
        }