Added endpoint to create a sessionCheckout with stripe
This commit is contained in:
17
src/Web/Endpoints/Stripe.cs
Normal file
17
src/Web/Endpoints/Stripe.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user