Closed ajayak closed 2 years ago
If the smallest unit in the currency is 1c, this seems correct. Or am I misunderstanding?
Hi @rowandh , if the currency is Cents, the CurrencyCode
should not have USD
It says Chargebee uses the smallest unit in the currency.
Thanks for alerting us. We have updated the docs since then and stated clearly that the currency values are actually N X 100 where N is the value in major units of the currency. Requesting you to please refer the latest version of doc: https://apidocs.chargebee.com/docs/api#currencies
From currency docs, https://apidocs.chargebee.com/docs/api#currencies It says Chargebee uses the smallest unit in the currency.
Issue:
Create an order with order total 100 USD. In the event, the
CurrencyCode
is USD andTotal
is 10000 which is absolutely wrong.Instead of handling the conversion in our app, it should be handled in SDK or chargebee itself