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.

fix paymentIntents.create logic

Steven Teyec033eb06fa8
diff --git a/apps/web/app/(ee)/api/cron/payouts/confirm/confirm-payouts.ts b/apps/web/app/(ee)/api/cron/payouts/confirm/confirm-payouts.ts
index 9f86a8a4af..5b9571691d 100644
--- a/apps/web/app/(ee)/api/cron/payouts/confirm/confirm-payouts.ts
+++ b/apps/web/app/(ee)/api/cron/payouts/confirm/confirm-payouts.ts
@@ -184,12 +184,10 @@ export async function confirmPayouts({
await stripe.paymentIntents.create({
amount: convertedTotal,
customer: workspace.stripeId!,
+ payment_method_types: [paymentMethod.type],
payment_method: paymentMethod.id,
- automatic_payment_methods: {
- enabled: true,
- allow_redirects: "never",
- },
currency,
+ confirmation_method: "automatic",
confirm: true,
transfer_group: invoice.id,
statement_descriptor: "Dub Partners",