#trentm-price-volumediscount

1 messages · Page 1 of 1 (latest)

haughty pagodaBOT
queen flint
lucid ibex
#

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.

queen flint
#

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

lucid ibex
#

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"

queen flint
#

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?

lucid ibex
#

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

queen flint
#

Okay so what's the problem? Can you share a URL where I can look?

lucid ibex
#

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?

queen flint
#

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

lucid ibex
#

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?

queen flint
#

no it's specific to Checkout right now

lucid ibex
#

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

queen flint
#

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

lucid ibex
#

Hmmm okay I was just thinking of how to possibly get a range where they could pick anywhere between 1 and say 500,000 sdk licenses

#

But in that case i might have to use the invoice feature stripe has

queen flint
#

(nevermind)

#

ah sorry, too many threads I mixed yours up

#

I don't fully grasp what that has to do with the Invoice feature @lucid ibex.