Skip to content

@checkout-kit/core / minorUnitsPerMajor

Variable: minorUnitsPerMajor ​

ts
const minorUnitsPerMajor: (currency) => number;

100 for USD, 1 for JPY, 1000 for KWD. Asked of Intl, not hardcoded.

Parameters ​

ParameterType
currencystring

Returns ​

number

Apache-2.0 · Headless engine, provider adapters and runnable examples.