#trentm-price-volumediscount
1 messages · Page 1 of 1 (latest)
@lucid ibex Can I ask you to provide a bit more details around your ask? What product are you using? Checkout, Billing, something else? What is the algorithm?
Are you talking about tiered pricing? https://stripe.com/docs/products-prices/pricing-models#tiered-pricing
The product is for SDK licenses. People can purchase from 1 to millions. In reference to the image below Here is an example;
User buys 200,000 units =>
Interpolate linearly between 100,000 and 1,000, 000
Unit price is 0.5 - ((200 000 - 100 000) / (1 000 000 - 100 000)) * (0.5 - 0.2) = $0.4666666666
Extended price is 0.46666666 * 200 000 = $93 333.33
In general - I am also having trouble integrating stripe checkout to my react code. I have tried to use the docs provided, however, it does not seem to be working.
I'm sorry I don't understand the "interpolate linearly". But no we don't have such a thing. We have tiers and you can tweak the unit price for each tiers, that's the closest offering
as for the Checkout issue I'm happy to help if you provide actionable details about your issue. You're the developer, you wrote the code, and you can explain what's blocking you and then I can help you
trentm-price-volumediscount
I tried to implement the button (link) into my react code, however, on the front end it is just displaying a button with the text "Something went wrong"
Do you have more details? Where is the error happening? How did you integrate? How do you redirect to Checkout? Which doc are you following?
I am following this doc https://stripe.com/docs/payment-links/share
I created the button with the product. Copied the code in the index.html and put the next code in my button.
Stripe-buy-button should be mounted
Okay so what's the problem? Can you share a URL where I can look?
Hi koopajah terribly sorry to waste your time, I fixed the button. It had a clash with my previous stripe checkout integration which I just removed.
I did have one more question however, what is the significance between utilizing stripe checkout and stripe button if they both take you to the external site?
Checkout is our hosted UI to accept a payment.
PaymentLinks allow you to configure how you want to charge multiple customers. A PaymentLink says "okay I am selling a book for $12" and then you get a URL that is "durable" and can be shared with anyone like on email or Twitter
And every time someone clicks that URL, under the hood it creates a Checkout Session for them to pay and that Session is "short lived"
The BuyButton is basically just a nice HTML button for a PaymentLink URL
Okay fantastic. Thank you so much for your help. The configuration for checkout said it can only house 0-999 items. Is this the maximum for everywhere on stripe?
no it's specific to Checkout right now
Okay so in the future - if i wanted to specify say unlimited licenses then I would just have to completely integrate my own custom stripe payment
No I don't think so. You'd have a Price for unlimited licenses and it'd have a quantity of 1 in that case