Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

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.ts
index 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 intent
const invoicePayments = await stripe.invoicePayments.list(
{
payment: {