File tree Expand file tree Collapse file tree 2 files changed +0
-6
lines changed
Expand file tree Collapse file tree 2 files changed +0
-6
lines changed Original file line number Diff line number Diff 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 : {
Original file line number Diff line number Diff 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` ,
You can’t perform that action at this time.
0 commit comments