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
|
// Get the receipt URL, preferring the one directly on the charge if available
|
||||||
string receiptUrl = stripeSession.PaymentIntent?.Charges?.Data.FirstOrDefault()?.ReceiptUrl ??
|
string receiptUrl = stripeSession.Invoice?.HostedInvoiceUrl ?? "";
|
||||||
stripeSession.Invoice?.HostedInvoiceUrl ??
|
|
||||||
"";
|
|
||||||
|
|
||||||
await tipPaymentNotifier.NotifyPaymentSucceedAsync(
|
await tipPaymentNotifier.NotifyPaymentSucceedAsync(
|
||||||
stripeSession.Id,
|
stripeSession.Id,
|
||||||
|
|||||||
Reference in New Issue
Block a user