#chemuturi - price
1 messages · Page 1 of 1 (latest)
Nothing but it is rounding to two digits!
That is for 0.225 it is creating as 0.22!
PriceCreateParams.Tier.builder().setUnitAmount((long) 22.5).build()
I think you need to set unit_amount_decimal instead: https://stripe.com/docs/api/prices/create#create_price-unit_amount_decimal
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Thanks, let me try it!