#chaitya - rounding

1 messages · Page 1 of 1 (latest)

edgy socket
#

Hi 👋

#

Can you put the screenshot in here?

copper basin
#

Non integer value

edgy socket
#

You can only pass integers in the amount parameter

copper basin
#

Any way to charge floating value

edgy socket
#

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.

copper crown
#

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?

edgy socket
#

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).

copper crown
#

@copper basin

#

Thank you @edgy socket

edgy socket
#

Happy to help! And we have many many more good public docs that walk through a bunch of common use cases.