chargebee / chargebee-dotnet

.NET library for the Chargebee API.
https://apidocs.chargebee.com/docs/api?lang=dotnet
MIT License
20 stars 24 forks source link

Currency Issue #24

Closed ajayak closed 2 years ago

ajayak commented 4 years ago

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 and Total is 10000 which is absolutely wrong.

Instead of handling the conversion in our app, it should be handled in SDK or chargebee itself

rowandh commented 4 years ago

If the smallest unit in the currency is 1c, this seems correct. Or am I misunderstanding?

ajayak commented 4 years ago

Hi @rowandh , if the currency is Cents, the CurrencyCode should not have USD

cb-khushbubibay commented 2 years ago

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