fix(stripe): issue with receipt_url
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user