#Maurdekye
1 messages ยท Page 1 of 1 (latest)
regardless, i think the display is a little misleading... if there was a way to display the full price instead of just the unit price here, that would be preferable
Hi ๐
Can you share an example request ID that creates the Checkout Session?
Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
hm... let me look for that
in the meantime, here's an example checkout session id, in case that might be useful: cs_test_a1n6q3BihwdDE5rky1NYGZWnlhDfpxbpgklA2evQMyI125qYuvrah7mANo
Okay that will work too
Okay I see what you mean. The total listed in the returned Checkout Session object is still 500
I think it has to do with the price object. Let me dig a little further
alright, thank you
Okay I think I see the issue. This is a usage based price, correct?
Oh oh oh
Prince $500 per 400 units. The quantity is less than 400 so the price is still $5
huh...?
i thought that was units tendered per package
so a quantity of 2 would be 800, 3 would be 1200, etc.
is there a pricing model i can use to reflect something like that?
That would be something you would need to set in the description of the Price. How you have defined it currently a quantity of 1-400 would cost $5, 401-800 would cost $10
The per unit model you are entering when creating the price is defining how Stripe should calculate the total for this Price based on the quantity. Not how many of your units a quantity: 1 should represent
ah, hm, i see...
ok then
that clears things up
i think that answers my questions :)
thank you ๐
Great! I'm glad we could offer some clarity. You can also include the description that each quantity represents 400 tokens in the Product description and Product features. This will get rendered in the Checkout UI.
I would recommend doing some testing by saving this information in different places like the Product and Price records and then creating Checkout Sessions to test how this information is presented.
That way you can decide on which approach works best for you
mhm, alright then