#Aarti

1 messages · Page 1 of 1 (latest)

worn crestBOT
pastel shore
#

Hi 👋

Do you have an example Price ID I can review?

ashen geode
#

Sure!

#

price_1NEJPfIp6MB4p4mqddCFGbeF

pastel shore
#

The unit_amount_decimal value that is provided is "335"

ashen geode
#

But I have set it to $3.35 -

#

I am not sure how the POST request has "335" set in the first place

pastel shore
#

I suspect it is a bug and I will raise it with the appropriate team.

#

But in general we return amounts in integers that represent cents

ashen geode
#

Ah I see. I did not know that. So can I expect all the unit_amount to be in cents? I can do the math on client side then

pastel shore
#

Yes we use integers that represent the lowest denomination for each currency. It makes comparisons more efficient and safe (avoids floating point errors).

ashen geode
#

Thanks for the explanation! I appreciate it!