#Senthil - Checkout
1 messages · Page 1 of 1 (latest)
Hello! The way you're setting up your Prices isn't compatible with the way quantities work in Checkout. You would need to set up Prices that reflect the price of a single unit and specify the quantity of that price in the Checkout Session: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_items-quantity
So, for example, if you had a base unit cost of $5/each but it changed to $4/each when you bought 10 at once you would have two Prices: $5 and $4, and when someone goes to buy 10 you would use the $4 Price and set the quantity to 10.
For the $150 for 10 in your use case the Price would be $15 each.
Does that make sense?
Yes, it does. I just have to consider if I am ok with emphasizing the breakdown of per unit price. Also the price is a child object of product is my understanding. It can be 10 widgets or it can be Product A with Features X,Y is $150, Product A with features X,Y & Z is $250.
So on the checkout I want to say Product A - Features X,Y - not qty 1
You would probably need to create separate Products for those.
The Product information is what's shown in Checkout.
If someone is buying something different it should be modeled as a different Product in Stripe.
That may be an option, but I am not understanding why is the architecture Product to Price a 1:Many. This means I have to treat Product:Price as 1:1
And the current approach works great for me the way I have it setup - I only need the description on the checkout page to be different
One of the most common use cases for the 1:many architecture is a Product with a regular Price and a sale Price.
Think of Products in Stripe as representing something someone will get regardless of what they pay for it.
If I get something with features X and Y but you get something with features X, Y, and Z those should be separate Products in Stripe because we got different things.
No it's like this: Product A is Lexus Model-350. Now prices vary based on options. I don't really want to create different products for each option
Yeah, that's not something we support super well right now (although it's being worked on)!
For now you'll need to create different Products.
Happy to help!
All they have to do is to make the description customizable
Have a simple override is all we require so I can describe the product as best as I feel. No need to change anything else on your end at the core. Just the display
Because the way I set it up works very well. Just the checkout page says Qty 1 and that will confuse
Well, you can customize the description: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_items-description
And even going by your earlier suggestion - the checkout page is always going to say Qty 1 - following by the number of units. That is confusing to the customer.
And even going by your earlier suggestion - the checkout page is always going to say Qty 1
Not sure I understand? You can make it say whatever quantity you wish using the approach I explained above.
I tried adding the description. Now it says This is a test desc, Qty 1, $150.00 for every 10
Right, but you also need to change your Price structure.
Right now you have a Price set to $150 with a quantity of 1. You need a Price set to $15 with a quantity of 10.
I recognize that is the option - but why force a description and now allow me to have my own. I really don't want to be creating so many products.
Like I said, this is just a UI update on your end.
I know the system doesn't fit your use case very well, and as I said we are working on improving this, but for now I'm trying to help you get this working with the way the system works today. 🙂
Is there a way to create your own checkout page by any change?
Perhaps, if I may design the checkout page, but the form-submit goes straight to stripe. So I never get the payment info
Yeah, have a look at Stripe Elements: https://stripe.com/docs/payments/elements
It seems to only allow customization of the Right Hand Side - the payment part. Am I missing the option / feature where the description can be customized?