Coinfat

Checkout SDK

Type reference

The package ships TypeScript declarations. These are the names it exports.

Runtime

PropertyTypeDescription
CoinfatfactoryCreates the client, the package entry point.
CheckoutApiErrorclassThe error passed to onError.
englishStringsconstThe base English string set to copy overrides from.

Option types

PropertyTypeDescription
CoinfatOptionstypeOptions for Coinfat().
Environmenttype"production" | "development".
CheckoutParamstypeOptions for checkout().
ButtonParamstypeOptions for button().
CheckoutCallbackstypeThe lifecycle callback set.
CheckoutThemetypeAccent color and light/dark mode.
ThemeModetype"light" | "dark" | "auto".
WidgetDisplaytype"inline" | "modal".
WidgetLayouttype"wide" | "narrow".
CheckoutStringstypeThe full payer-facing string set.
CheckoutStringsOverridetypeA partial override of CheckoutStrings.

Resource types

The invoice shapes callbacks receive.

PropertyTypeDescription
CheckouttypeThe invoice object callbacks receive.
CheckoutStoretypeThe store's branding on a checkout.
StoreInvoicePaymenttypeA single payment attempt.
StoreInvoiceStatustypeThe invoice status enum.
StoreInvoicePaymentStatustypeThe payment status enum.
WallettypeA payable coin.
WalletNetworktypeA network for a coin.
CointypeA crypto amount.
MoneytypeA fiat amount.
CurrencytypeA settlement currency.