fix(stripe): issue with receipt_url

This commit is contained in:
2025-06-18 21:27:46 -04:00
parent 5a6351c537
commit 27440237e2

View File

@@ -48,9 +48,7 @@ public class StripeWebhookEndpoint(
"";
// Get the receipt URL, preferring the one directly on the charge if available
string receiptUrl = stripeSession.PaymentIntent?.Charges?.Data.FirstOrDefault()?.ReceiptUrl ??
stripeSession.Invoice?.HostedInvoiceUrl ??
"";
string receiptUrl = stripeSession.Invoice?.HostedInvoiceUrl ?? "";
await tipPaymentNotifier.NotifyPaymentSucceedAsync(
stripeSession.Id,