You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some currencies (e.g. Japanese Yen) have smallest currency unit same as its primary currency unit and therefore do not have any decimal places. Most tools integrating Stripe assume that all currencies have SCU equal to 1/100 of PCU which in case of e.g. Japanese Yen is not true. I suppose that some currencies might even have SCU equal to 1/1000 or 1/10 of PCU.
How should we handle such cases? One solution that comes to my mind is to build a map of currencies compliant with ISO 4217 and one of keys providing SCU lambda.
Some currencies (e.g. Japanese Yen) have
smallest currency unit
same as itsprimary currency unit
and therefore do not have any decimal places. Most tools integrating Stripe assume that all currencies haveSCU
equal to1/100
ofPCU
which in case of e.g. Japanese Yen is not true. I suppose that some currencies might even haveSCU
equal to1/1000
or1/10
ofPCU
.How should we handle such cases? One solution that comes to my mind is to build a map of currencies compliant with ISO 4217 and one of keys providing
SCU
lambda.For example:
Also, should we fork / extend with PR existing lib like https://github.com/limist/py-moneyed or should we write something internal to DRP?
The text was updated successfully, but these errors were encountered: