From 27440237e2cea99ddcbcc711ed202402532e306f Mon Sep 17 00:00:00 2001 From: Jonathan Bourdon Date: Wed, 18 Jun 2025 21:27:46 -0400 Subject: [PATCH] fix(stripe): issue with receipt_url --- backend/Modules/Memberships/Handlers/HandleStripe.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/backend/Modules/Memberships/Handlers/HandleStripe.cs b/backend/Modules/Memberships/Handlers/HandleStripe.cs index 03bf198..1675553 100644 --- a/backend/Modules/Memberships/Handlers/HandleStripe.cs +++ b/backend/Modules/Memberships/Handlers/HandleStripe.cs @@ -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,