Removed need for users to be signed in to tip
This commit is contained in:
@@ -51,6 +51,8 @@ public class SendTipHandler(
|
||||
{
|
||||
Post("/api/tips");
|
||||
Options(o => o.WithTags("Memberships"));
|
||||
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
public override async Task HandleAsync(
|
||||
@@ -68,8 +70,6 @@ public class SendTipHandler(
|
||||
}
|
||||
|
||||
var checkoutSession = await stripeService.CreateTipCheckoutSessionAsync(
|
||||
User.GetUserId(),
|
||||
User.GetAlias()!,
|
||||
creator.Id,
|
||||
creator.Name,
|
||||
req.Amount,
|
||||
@@ -77,7 +77,8 @@ public class SendTipHandler(
|
||||
req.Message,
|
||||
creator.StripeAccountId,
|
||||
req.CheckoutSuccessUrl,
|
||||
req.CheckoutCancelledUrl);
|
||||
req.CheckoutCancelledUrl
|
||||
);
|
||||
|
||||
await SendAsync(
|
||||
new SendTipResponse("Pending", checkoutSession.Url),
|
||||
|
||||
Reference in New Issue
Block a user