@adyen/kyc-components
Version:
`adyen-kyc-components` provides the required pieces to build an onboarding flow based on a legal entity. To onboard and verify users, you need to create a user interface (UI) to collect user data. To speed up building your integration, Adyen offers onboar
20 lines (19 loc) • 735 B
TypeScript
import type { CountryCode } from '../core/models/country-code';
export interface Options {
/**
* Reusable of options across adyen onboarding components. Object of:
* - environment: 'live'|'test'
* - country: two letter ISO code
* - locale: eg 'en-US', supported locales: @see https://docs.adyen.com/platforms/onboard-users/components/transfer-instrument/#initialize-components
* - fetchToken: async function retriving the auth token
*
* @example { environment: 'test', country: 'US', locale: 'en-US', fetchToken }
*/
environment: 'live' | 'test' | string;
locale: string;
country: CountryCode;
fetchToken: () => Promise<{
token: string;
}>;
token?: string;
}