fix(stripe): correcting webhook

This commit is contained in:
2025-08-04 17:15:13 -04:00
parent 18532963a8
commit ea8efd21a1
6 changed files with 134 additions and 113 deletions

View File

@@ -13,12 +13,12 @@ internal static class SendTip
decimal Amount,
string Currency,
string Message,
string CheckoutSuccessUrl,
string CheckoutCancelledUrl);
Uri CheckoutSuccessUrl,
Uri CheckoutCancelledUrl);
internal record Response(
string Id,
string Url);
Uri Url);
internal class Validator : Validator<Request>
{
@@ -116,7 +116,7 @@ internal static class SendTip
await dbContext.SaveChangesAsync(ct).ConfigureAwait(false);
await SendAsync(
new Response(checkout.Id, checkout.Url),
new Response(checkout.Id, new Uri(checkout.Url)),
cancellation: ct)
.ConfigureAwait(false);
}