I have a Stripe service that requires me to send the currency in the smallest currency (zero decimal currency in my documents). That is, $ 1 I would send {"currency": "USD", amount: 100} and charge ¥ 100 I would send {"currency": "YEN", amount: 100}
My top-level applications do not want to handle the currency in this way and want to use standard currency formats. Is there any way to convert javax.money.MonetaryAmountto zero decimal currency format?
Or will I have to write conversions manually?
source
share