#jcu1012-checkout-session

1 messages · Page 1 of 1 (latest)

bronze basin
#

heya @outer nacelle! can you share the code snippet where you're adding metadata?

outer nacelle
#

// Create Checkout Session const session = await stripe.checkout.sessions.create({ payment_method_types: ['card'], //customer_email: customerEmail, line_items: [{ price: stripePlan, quantity: 1, }], customer: { metadata:{'name': 'JK Rowling'}, email: customerEmail }, discounts: [{ coupon: 'CYXUqEo4' }], mode: 'subscription', tax_id_collection: { enabled: true, // Business VAT },

#

customer: {
metadata:{'name': 'JK Rowling'},
email: customerEmail
},

#

this is the part that's throwing the error

bronze basin