#ibrahim menem-checkout-pricing
1 messages ยท Page 1 of 1 (latest)
Yep, you're just creating the Price objects as documented, then passing multiple line items with each price_xxx when creating the Checkout Session: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_items
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
great, so it is a limitation in https://checkout.stripe.dev/ but it will render the elements correctly once implemented (I mean buttons to increase and decrease the number of seats)
Preview some of the features available in our prebuilt, hosted payment page.
That demo is a bit outdated (it doesn't feature all the new Checkout stuff and it doesn't cover every possible use case)
Why don't you try implement it and see what happens?
yep, just trying to figure out what is the best approach (I'm total strip noob)
I'll try to implement it using checkout then
You'll need to pass adjustable_quantity parameter for the line item you want the customer to be able to change: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_items-adjustable_quantity
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
great! thank you, and this is valid for subscriptions, right?
yup!
many thanks ๐