Exemple #1
0
        public async Task <IActionResult> CreateSession(CreateCheckoutSessionCommand create)
        {
            var billingRef = await mediator.Dispatch <CreateCheckoutSessionCommand, BillingReference>(
                create,
                User !.GetUserId()
                );

            return(Ok(new {
                CheckoutSessionId = billingRef.BillingId
            }));
        }
Exemple #2
0
 public async Task <ActionResult <PaymentSessionDto> > CreateStripeCheckoutSession(
     [FromBody] CreateCheckoutSessionCommand command)
 {
     return(await Mediator.Send(command));
 }