Skip to content

Commit d407cdf

Browse files
committed
Revert "Enable invoice creation and tax id collection in stripe checkout"
This reverts commit ca4ea4b.
1 parent dd71ccf commit d407cdf

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

web/src/app/api/stripe/buy-credits/route.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,6 @@ export async function POST(req: NextRequest) {
185185
},
186186
],
187187
mode: 'payment',
188-
invoice_creation: { enabled: true },
189-
tax_id_collection: { enabled: true }, // optional (EU B2B)
190-
customer_update: { name: "auto", address: "auto" },
191188
success_url: `${env.NEXT_PUBLIC_CODEBUFF_APP_URL}/payment-success?session_id={CHECKOUT_SESSION_ID}&purchase=credits&amt=${credits}`,
192189
cancel_url: `${env.NEXT_PUBLIC_CODEBUFF_APP_URL}/usage?purchase_canceled=true`,
193190
metadata: {

web/src/app/api/stripe/create-subscription/route.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,6 @@ export async function POST(req: NextRequest) {
7272
const checkoutSession = await stripeServer.checkout.sessions.create({
7373
customer: user.stripe_customer_id,
7474
mode: 'subscription',
75-
invoice_creation: { enabled: true },
76-
tax_id_collection: { enabled: true }, // optional (EU B2B)
77-
customer_update: { name: "auto", address: "auto" },
7875
line_items: [{ price: priceId, quantity: 1 }],
7976
allow_promotion_codes: true,
8077
success_url: `${env.NEXT_PUBLIC_CODEBUFF_APP_URL}/profile?tab=usage&subscription_success=true`,

0 commit comments

Comments
 (0)