#kosakanatops-checkout-lineitems

1 messages · Page 1 of 1 (latest)

raw ledgeBOT
lone wind
foggy crow
#

yeah I was looking at this but i don't see anything related to the quantity? I only see the total amount charged

lone wind
#

Where are you specifying quantity during the Payment Intent creation process?

foggy crow
#

stripe.checkout.sessions.create({
customer: response.locals.user.id,
line_items: [
{
price: 'price_1Li1uoLHhuDfABwIwMZYRfVx',
adjustable_quantity: {
enabled: true,
maximum: 999,
minimum: 0
},
quantity: request.body.quantity,
},
],
mode: 'payment',
shipping_address_collection: {
allowed_countries: ['US']
},
allow_promotion_codes: true,
// automatic_tax: {
// enabled: true
// },
phone_number_collection: {
enabled: true
},

#

this is how i create the checkout session for users to checkout, there is a place for specifying the quantity for each line items

lone wind
#

It's on the Checkout Session itself, rather than the Payment Intent object

foggy crow
lone wind
gray sphinx
#

kosakanatops-checkout-lineitems