From 6c2fd50ed099f76a9d10774497a20ca75af06640 Mon Sep 17 00:00:00 2001 From: alex Date: Sat, 24 Feb 2024 09:08:18 +0100 Subject: [PATCH] testing --- src/controllers/paymentController.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/controllers/paymentController.ts b/src/controllers/paymentController.ts index 104de72..72db240 100644 --- a/src/controllers/paymentController.ts +++ b/src/controllers/paymentController.ts @@ -111,13 +111,14 @@ export async function CreateCheckoutSession(priceId: string, userId: string) { await loadPrices(); const session = await stripe.checkout.sessions.create({ - payment_method_types: ["card", "paypal"], + payment_method_types: ["card"], line_items: [ { price: priceId, quantity: 1, }, ], + billing_address_collection: "required", mode: "subscription", subscription_data: {