Documentation Index
Fetch the complete documentation index at: https://docs.qonto.com/llms.txt
Use this file to discover all available pages before exploring further.
Variable: constants
The constants object contains useful constants that can be used to configure the SDK or to access values of different
entities it can return.
Constants can be used to call the SDK methods that need certain values:
import { initialize, constants } from '@qonto/embed-sdk/common';
const { ENVIRONMENTS, LOCALES } = constants;
initialize({
environment: ENVIRONMENTS.STAGING,
locale: LOCALES.FR,
});
Or to perform checks on entities returned by the SDK:
import { constants } from '@qonto/embed-sdk/common';
import { getSepaTransfer } from '@qonto/embed-sdk/sepa-transfers';
const { TRANSFER_STATUSES } = constants;
const transfer = await getSepaTransfer('transfer-id');
if (transfer.status === TRANSFER_STATUSES.PENDING) {
console.log('Transfer is pending');
}
Go to the Constants section for a further description of each constant and its usage.