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.

source_transaction

Steven Teyc8d2ce41fa2c
diff --git a/apps/web/app/api/stripe/webhook/charge-succeeded.ts b/apps/web/app/api/stripe/webhook/charge-succeeded.ts
index 7e9ff15f11..47be45c5ea 100644
--- a/apps/web/app/api/stripe/webhook/charge-succeeded.ts
+++ b/apps/web/app/api/stripe/webhook/charge-succeeded.ts
@@ -58,6 +58,11 @@ export async function chargeSucceeded(event: Stripe.Event) {
currency: "usd",
destination: payout.partner.stripeConnectId!,
transfer_group: invoice.id,
+ ...(!charge.payment_method_details?.ach_credit_transfer
+ ? {
+ source_transaction: charge.id,
+ }
+ : {}),
description: `Dub Partners payout (${payout.program.name})`,
});
diff --git a/apps/web/ui/partners/payout-invoice-sheet.tsx b/apps/web/ui/partners/payout-invoice-sheet.tsx
index fa419f1912..a97107fb5c 100644
--- a/apps/web/ui/partners/payout-invoice-sheet.tsx
+++ b/apps/web/ui/partners/payout-invoice-sheet.tsx
@@ -238,13 +238,13 @@ function PayoutInvoiceSheetContent({ setIsOpen }: PayoutInvoiceSheetProps) {
),
Duration: (
- <span className="underline decoration-dotted underline-offset-2">
+ <div>
{selectedPaymentMethod ? (
selectedPaymentMethod?.duration
) : (
<div className="h-4 w-24 animate-pulse rounded-md bg-neutral-200" />
)}
- </span>
+ </div>
),
Total: currencyFormatter(total / 100, {