Added endpoint to create a sessionCheckout with stripe

This commit is contained in:
Dominic Villemure
2024-03-20 01:10:44 -04:00
parent 0689a3d85c
commit 2b810772b3
8 changed files with 157 additions and 7 deletions

View File

@@ -0,0 +1,17 @@
using Hutopy.Application.Stripe.Commands;
namespace Hutopy.Web.Endpoints;
public class Stripe : EndpointGroupBase
{
public override void Map(WebApplication app)
{
app.MapGroup(this)
.MapPost(CreateSessionCheckout);
}
public Task<string> CreateSessionCheckout(ISender sender, CreateSessionCheckoutCommand command)
{
return sender.Send(command);
}
}