#Aarti
1 messages · Page 1 of 1 (latest)
Hi 👋
Do you have an example Price ID I can review?
Okay that is because this is what the Dashoard sent to us. You can see the request here: https://dashboard.stripe.com/test/logs/req_pbLVWKTvy2CMt7
The unit_amount_decimal value that is provided is "335"
But I have set it to $3.35 -
I am not sure how the POST request has "335" set in the first place
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
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
Yes we use integers that represent the lowest denomination for each currency. It makes comparisons more efficient and safe (avoids floating point errors).
Thanks for the explanation! I appreciate it!