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 process-payout-invoice-failure.ts

Kiran Ke5807e4efea7
diff --git a/apps/web/app/(ee)/api/stripe/webhook/utils/process-payout-invoice-failure.ts b/apps/web/app/(ee)/api/stripe/webhook/utils/process-payout-invoice-failure.ts
index cdef0d873c..361694764d 100644
--- a/apps/web/app/(ee)/api/stripe/webhook/utils/process-payout-invoice-failure.ts
+++ b/apps/web/app/(ee)/api/stripe/webhook/utils/process-payout-invoice-failure.ts
@@ -103,6 +103,10 @@ export async function processPayoutInvoiceFailure({
if (paymentMethod?.card) {
cardLast4 = paymentMethod.card.last4;
}
+ } else {
+ console.log(
+ `Skipped charging failure fee for blocked direct debit charge on invoice ${invoice.id}.`,
+ );
}
}