diff --git a/server/routes/checkout.js b/server/routes/checkout.js index d020d69..dc95812 100644 --- a/server/routes/checkout.js +++ b/server/routes/checkout.js @@ -92,12 +92,20 @@ router.post('/create-session', async (req, res) => { // Create Stripe Checkout Session const session = await stripe.checkout.sessions.create({ - payment_method_types: ['card'], + payment_method_types: ['card', 'us_bank_account', 'link'], line_items: lineItems, mode: 'payment', success_url: `${process.env.FRONTEND_URL}/checkout/success?session_id={CHECKOUT_SESSION_ID}`, cancel_url: `${process.env.FRONTEND_URL}/checkout/cancel`, customer_email: customerEmail, + customer_creation: 'always', // Always create a customer for payment tracking + billing_address_collection: 'required', // Collect billing address for business payments + phone_number_collection: { + enabled: true, // Collect phone number + }, + tax_id_collection: { + enabled: true, // Allow customers to enter business tax ID + }, metadata: { tons: tons.toString(), portfolioId: portfolioId.toString(),