Skip to content

Instantly share code, notes, and snippets.

Avatar

Baptiste Arnaud baptisteArno

View GitHub Profile
@baptisteArno
baptisteArno / stripe.ts
Created Jun 2, 2022
Function to check if currency is "zero-decimal" - Stripe
View stripe.ts
// https://stripe.com/docs/currencies#zero-decimal
const isZeroDecimalCurrency = (currency: string) =>
[
'BIF',
'CLP',
'DJF',
'GNF',
'JPY',
'KMF',
'KRW',