#27 added confirm endpoint for stripe
This commit is contained in:
@@ -7,6 +7,7 @@ public class Stripe : EndpointGroupBase
|
||||
public override void Map(WebApplication app)
|
||||
{
|
||||
app.MapGroup(this)
|
||||
.MapPost(ConfirmTransaction, "/confirmTransaction")
|
||||
.MapPost(CreateSessionCheckout);
|
||||
}
|
||||
|
||||
@@ -14,4 +15,9 @@ public class Stripe : EndpointGroupBase
|
||||
{
|
||||
return sender.Send(command);
|
||||
}
|
||||
|
||||
private static Task<string> ConfirmTransaction(ISender sender, ConfirmStripeTransactionCommand command)
|
||||
{
|
||||
return sender.Send(command);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user