The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update charge-refunded.ts
Kiran Kdb2e37bde54a
diff --git a/apps/web/app/(ee)/api/stripe/integration/webhook/charge-refunded.ts b/apps/web/app/(ee)/api/stripe/integration/webhook/charge-refunded.tsindex 4616feacb5..397360a6be 100644--- a/apps/web/app/(ee)/api/stripe/integration/webhook/charge-refunded.ts+++ b/apps/web/app/(ee)/api/stripe/integration/webhook/charge-refunded.ts@@ -11,6 +11,7 @@ export async function chargeRefunded(event: Stripe.Event) {livemode: event.livemode,});+ // Charge doesn't have invoice property, so we need to get the invoice from the payment intentconst invoicePayments = await stripe.invoicePayments.list({payment: {