#iamshubhamaratha
1 messages · Page 1 of 1 (latest)
Can you share an example session ID (cs_xxx)?
cs_test_b1WjVrwJxDgaf5RcmoIUzsPHT7NhVRkMg9A2owxT4JsqPQ53PwyUjotIhH
Then you need to pass the quantity parameter for the line item when creating your session: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_items-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.
Right now you pass quantity: 1: https://dashboard.stripe.com/test/logs/req_182DHRznx2Cply
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
ye because currently the quantity: 1:
You want your customers to be able to change the quantity on the payment page? It's unclear what the issue is
but the base amount is 12.99 USD per month yearly so the value should be 12.99 x 1 x 12
because the payment mode is yearly
quantity will automatically chanage
no issue If I am unable to explain you
can you help me to pass the total amount while creating checkout session
with quantity as well
So your intention is to create a yearly subscription for ~155? Then you need to update the Price object to use the correct yearly value (12.99x12). Right now it's 12.99: https://dashboard.stripe.com/test/prices/4797da502cce498d82c6b128d6f04fd6_Annual_USD
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
yes correct that is what I need
So create a yearly Price object with the actual yearly price (12.99 * 12) and use that when you create the session
so how would I update the price object
You can't generally, they're immutable
so any other way of doing this
Yep, create a new Price object
how would I do that