#slikheks.
1 messages · Page 1 of 1 (latest)
Are you using Checkout Sessions?
const session = await stripe.checkout.sessions.create({
customer: data?.stripe_customer_id,
billing_address_collection: 'required',
customer_update: {
address: 'auto',
shipping: 'auto',
name: 'auto'
},
tax_id_collection: {
enabled: true
},
allow_promotion_codes: type === 'member' ? true : false,
payment_method_types: ['ideal'],
locale: 'nl',
line_items: lineItems,
mode: 'subscription',
});
so yes 😄
got it, really appreciate the double checking!