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 utils.ts

Kiran K6cff17a5cfc1
diff --git a/apps/web/app/api/cron/invoices/utils.ts b/apps/web/app/api/cron/invoices/utils.ts
index c819ecf58d..e4266e5746 100644
--- a/apps/web/app/api/cron/invoices/utils.ts
+++ b/apps/web/app/api/cron/invoices/utils.ts
@@ -23,18 +23,18 @@ export const processInvoice = async ({ invoiceId }: { invoiceId: string }) => {
throw new Error(`No payouts found for invoice ${invoiceId}.`);
}
- const result = await stripe.paymentIntents.create({
- amount: payout.amount,
- currency: payout.currency,
- description: "Payout for affiliate from Dub Partners",
- customer: partner.stripeCustomerId, // Partner's Stripe Customer ID
- payment_method: "pm_1QV6ZKFacAXKeDpJQJa2tLc8", // Partner's Stripe Payment Method ID
- confirm: true,
- confirmation_method: "automatic",
- transfer_data: {
- destination: affiliate.connectedAccountId, // To where the payout is sent
- },
- application_fee_amount: 100, // 1% fee from Dub
- });
+ // const result = await stripe.paymentIntents.create({
+ // amount: payout.amount,
+ // currency: payout.currency,
+ // description: "Payout for affiliate from Dub Partners",
+ // customer: partner.stripeCustomerId, // Partner's Stripe Customer ID
+ // payment_method: "pm_1QV6ZKFacAXKeDpJQJa2tLc8", // Partner's Stripe Payment Method ID
+ // confirm: true,
+ // confirmation_method: "automatic",
+ // transfer_data: {
+ // destination: affiliate.connectedAccountId, // To where the payout is sent
+ // },
+ // application_fee_amount: 100, // 1% fee from Dub
+ // });
};