UNPKG

@adyen/kyc-components

Version:

This guide assumes that you have already an account with Adyen. A legalEntity needs to be created, and you need to have a `legalEntityId` to instatiate a Component.

47 lines (46 loc) 1.25 kB
try { let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack; n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "1aa2f5e6-20a6-4732-a4dc-f522dc19a9f5", e._sentryDebugIdIdentifier = "sentry-dbid-1aa2f5e6-20a6-4732-a4dc-f522dc19a9f5"); } catch (e) {} import { t as CountryCodes } from "./country-code-CX5KqMBr.js"; //#region src/components/Individual/forms/IdDocumentUpload/utils.ts function getLocalizedIdDocumentTypeOptions(country) { switch (country) { case CountryCodes.Japan: return [ { id: "driversLicense", name: "driversLicense", hasBackPage: true }, { id: "passport", name: "passport", hasBackPage: false }, { id: "identityCard", name: "identityCard__JP", hasBackPage: true } ]; default: return [ { id: "driversLicense", name: "driversLicense", hasBackPage: true }, { id: "passport", name: "passport", hasBackPage: false }, { id: "identityCard", name: "identityCard", hasBackPage: true } ]; } } //#endregion export { getLocalizedIdDocumentTypeOptions as t };