UNPKG

@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

23 lines (22 loc) 921 B
import { Core } from '../core/core'; import type { Options } from './types'; /** * Creates a reusable configuration for all Components * * @param {Options} config * 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 * * @returns {Core} * * @example { environment: 'test', country: 'US', locale: 'en-US', fetchToken } */ export declare const loadAdyenConfig: (config: Options) => Promise<Core>; /** * Allows consumer to pass either the already intialized Core, reusable across multiple Components * or its configuration object for a quicker single-Component usage (non-reusable) */ export declare const getCoreFromSdkOptionsProp: (sdkOptions: Options | Core) => Promise<Core>;