public async Task <IActionResult> CreateSession(CreateCheckoutSessionCommand create) { var billingRef = await mediator.Dispatch <CreateCheckoutSessionCommand, BillingReference>( create, User !.GetUserId() ); return(Ok(new { CheckoutSessionId = billingRef.BillingId })); }
public async Task <ActionResult <PaymentSessionDto> > CreateStripeCheckoutSession( [FromBody] CreateCheckoutSessionCommand command) { return(await Mediator.Send(command)); }