#chaitya - rounding
1 messages · Page 1 of 1 (latest)
You can only pass integers in the amount parameter
We state this here: https://stripe.com/docs/api/payment_intents/create#create_payment_intent-amount
Any way to charge floating value
Fractional amounts are not permitted
It is up to your integration to determine the smallest whole unit of the currency involved and provide that number.
Hi I am the owner of the app. We are trying to charge state taxes and payment processing fees. Is there no way to charge for cents? It has to be a whole number?
Yes you can charge cents
We state that clearly in the doc I linked above:
Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the smallest currency unit (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency).