Skip to main content

SecureFieldsErrors

const SecureFieldsErrors: object;

Error codes and messages for the Secure Fields SDK.

Type Declaration​

CONTAINER_NOT_FOUND​

readonly CONTAINER_NOT_FOUND: object;

CONTAINER_NOT_FOUND.code​

readonly code: "CONTAINER_NOT_FOUND";
readonly documentationLink: "https://docs.purse.tech/docs/integrate/purse-api/additional-features/advanced-flow/sdk-references/Configuration/SecureFieldsFieldConfig#target";

CONTAINER_NOT_FOUND.message​

readonly message: "Container element not found in the DOM";

FIELD_CONFIG_REQUIRED​

readonly FIELD_CONFIG_REQUIRED: object;

FIELD_CONFIG_REQUIRED.code​

readonly code: "FIELD_CONFIG_REQUIRED" = 'FIELD_CONFIG_REQUIRED';
readonly documentationLink: "https://docs.purse.tech/docs/integrate/purse-api/additional-features/advanced-flow/sdk-references/Configuration/SecureFieldsConfig#fields" = 'https://docs.purse.tech/docs/integrate/purse-api/additional-features/advanced-flow/sdk-references/Configuration/SecureFieldsConfig#fields';

FIELD_CONFIG_REQUIRED.message​

readonly message: "Fields configuration is mandatory for SDK initialization" = 'Fields configuration is mandatory for SDK initialization';

FIELD_RENDER_FAILED​

readonly FIELD_RENDER_FAILED: object;

FIELD_RENDER_FAILED.code​

readonly code: "FIELD_RENDER_FAILED" = 'FIELD_RENDER_FAILED';
readonly documentationLink: "https://docs.purse.tech/docs/integrate/purse-api/additional-features/advanced-flow/" = 'https://docs.purse.tech/docs/integrate/purse-api/additional-features/advanced-flow/';

FIELD_RENDER_FAILED.message​

readonly message: "Failed to render one or more fields" = 'Failed to render one or more fields';

FIELD_TARGET_INVALID​

readonly FIELD_TARGET_INVALID: object;

FIELD_TARGET_INVALID.code​

readonly code: "FIELD_TARGET_INVALID" = 'FIELD_TARGET_INVALID';
readonly documentationLink: "https://docs.purse.tech/docs/integrate/purse-api/additional-features/advanced-flow/sdk-references/Configuration/SecureFieldsFieldConfig#target" = 'https://docs.purse.tech/docs/integrate/purse-api/additional-features/advanced-flow/sdk-references/Configuration/SecureFieldsFieldConfig#target';

FIELD_TARGET_INVALID.message​

readonly message: "Fields target must be valid DOM element IDs" = 'Fields target must be valid DOM element IDs';

FIELDS_NOT_RENDERED​

readonly FIELDS_NOT_RENDERED: object;

FIELDS_NOT_RENDERED.code​

readonly code: "FIELDS_NOT_RENDERED" = 'FIELDS_NOT_RENDERED';
readonly documentationLink: "https://docs.purse.tech/docs/integrate/purse-api/additional-features/advanced-flow/sdk-references/Core/SecureFieldsClient#submit" = 'https://docs.purse.tech/docs/integrate/purse-api/additional-features/advanced-flow/sdk-references/Core/SecureFieldsClient#submit';

FIELDS_NOT_RENDERED.message​

readonly message: "Fields must be rendered before performing this action" = 'Fields must be rendered before performing this action';

INIT_FAILED​

readonly INIT_FAILED: object;

INIT_FAILED.code​

readonly code: "INIT_FAILED" = 'INIT_FAILED';
readonly documentationLink: "https://docs.purse.tech/docs/integrate/purse-api/additional-features/advanced-flow/" = 'https://docs.purse.tech/docs/integrate/purse-api/additional-features/advanced-flow/';

INIT_FAILED.message​

readonly message: "SDK initialization failed" = 'SDK initialization failed';

INSTANCE_DESTROYED​

readonly INSTANCE_DESTROYED: object;

INSTANCE_DESTROYED.code​

readonly code: "INSTANCE_DESTROYED" = 'INSTANCE_DESTROYED';
readonly documentationLink: "https://docs.purse.tech/docs/integrate/purse-api/additional-features/advanced-flow/" = 'https://docs.purse.tech/docs/integrate/purse-api/additional-features/advanced-flow/';

INSTANCE_DESTROYED.message​

readonly message: "Instance has been destroyed and cannot be used" = 'Instance has been destroyed and cannot be used';

INVALID_BRANDS​

readonly INVALID_BRANDS: object;

INVALID_BRANDS.code​

readonly code: "INVALID_BRANDS" = 'INVALID_BRANDS';
readonly documentationLink: "https://docs.purse.tech/docs/integrate/purse-api/additional-features/advanced-flow/sdk-references/Configuration/SecureFieldsConfig#brands" = 'https://docs.purse.tech/docs/integrate/purse-api/additional-features/advanced-flow/sdk-references/Configuration/SecureFieldsConfig#brands';

INVALID_BRANDS.message​

readonly message: "One or more specified card brands are not supported" = 'One or more specified card brands are not supported';

INVALID_FORM​

readonly INVALID_FORM: object;

INVALID_FORM.code​

readonly code: "INVALID_FORM" = 'INVALID_FORM';
readonly documentationLink: "https://docs.purse.tech/docs/integrate/purse-api/additional-features/advanced-flow/sdk-references/Core/SecureFieldsClient#submit" = 'https://docs.purse.tech/docs/integrate/purse-api/additional-features/advanced-flow/sdk-references/Core/SecureFieldsClient#submit';

INVALID_FORM.message​

readonly message: "Form validation failed - check field values" = 'Form validation failed - check field values';

NETWORK_ERROR​

readonly NETWORK_ERROR: object;

NETWORK_ERROR.code​

readonly code: "NETWORK_ERROR" = 'NETWORK_ERROR';
readonly documentationLink: "https://docs.purse.tech/docs/integrate/purse-api/additional-features/advanced-flow/" = 'https://docs.purse.tech/docs/integrate/purse-api/additional-features/advanced-flow/';

NETWORK_ERROR.message​

readonly message: "Network request failed - check your connection" = 'Network request failed - check your connection';

NOT_SUPPORTED_FIELD​

readonly NOT_SUPPORTED_FIELD: object;

NOT_SUPPORTED_FIELD.code​

readonly code: "NOT_SUPPORTED_FIELD" = 'NOT_SUPPORTED_FIELD';
readonly documentationLink: "https://docs.purse.tech/docs/integrate/purse-api/additional-features/advanced-flow/sdk-references/Configuration/SecureFieldsConfig#fields" = 'https://docs.purse.tech/docs/integrate/purse-api/additional-features/advanced-flow/sdk-references/Configuration/SecureFieldsConfig#fields';

NOT_SUPPORTED_FIELD.message​

readonly message: "The specified field type is not supported" = 'The specified field type is not supported';

TENANT_ID_REQUIRED​

readonly TENANT_ID_REQUIRED: object;

This is a custom doc

TENANT_ID_REQUIRED.code​

readonly code: "TENANT_ID_REQUIRED" = 'TENANT_ID_REQUIRED';
readonly documentationLink: "https://docs.purse.tech/docs/integrate/purse-api/additional-features/advanced-flow/#prerequisites" = 'https://docs.purse.tech/docs/integrate/purse-api/additional-features/advanced-flow/#prerequisites';

TENANT_ID_REQUIRED.message​

readonly message: "Tenant ID is required for Secure Fields initialization" = 'Tenant ID is required for Secure Fields initialization';

THREEDS_CARD_NOT_ELIGIBLE​

readonly THREEDS_CARD_NOT_ELIGIBLE: object;

Thrown by threeDSSavedCard: offer the card form.

THREEDS_CARD_NOT_ELIGIBLE.code​

readonly code: "THREEDS_CARD_NOT_ELIGIBLE" = 'THREEDS_CARD_NOT_ELIGIBLE';
readonly documentationLink: "https://docs.purse.tech/docs/integrate/purse-api/additional-features/advanced-flow/" = 'https://docs.purse.tech/docs/integrate/purse-api/additional-features/advanced-flow/';

THREEDS_CARD_NOT_ELIGIBLE.message​

readonly message: "This saved card cannot be authenticated with 3DS - ask for the card details instead" = 'This saved card cannot be authenticated with 3DS - ask for the card details instead';

THREEDS_INVALID_INPUT​

readonly THREEDS_INVALID_INPUT: object;

THREEDS_INVALID_INPUT.code​

readonly code: "THREEDS_INVALID_INPUT";
readonly documentationLink: "https://docs.purse.tech/docs/integrate/purse-api/additional-features/advanced-flow/";

THREEDS_INVALID_INPUT.message​

readonly message: "Invalid 3DS parameters";

THREEDS_INVALID_URL​

readonly THREEDS_INVALID_URL: object;

THREEDS_INVALID_URL.code​

readonly code: "THREEDS_INVALID_URL";
readonly documentationLink: "https://docs.purse.tech/docs/integrate/purse-api/additional-features/advanced-flow/";

THREEDS_INVALID_URL.message​

readonly message: "The 3DS endpoint must be a valid http(s) URL";

THREEDS_VERSIONING_FAILED​

readonly THREEDS_VERSIONING_FAILED: object;

Thrown by threeDSSavedCard only; submit() absorbs it.

THREEDS_VERSIONING_FAILED.code​

readonly code: "THREEDS_VERSIONING_FAILED" = 'THREEDS_VERSIONING_FAILED';
readonly documentationLink: "https://docs.purse.tech/docs/integrate/purse-api/additional-features/advanced-flow/" = 'https://docs.purse.tech/docs/integrate/purse-api/additional-features/advanced-flow/';

THREEDS_VERSIONING_FAILED.message​

readonly message: "The 3DS versioning call failed - 3DS cannot be attempted" = 'The 3DS versioning call failed - 3DS cannot be attempted';

TOKENIZATION_FAILED​

readonly TOKENIZATION_FAILED: object;

TOKENIZATION_FAILED.code​

readonly code: "TOKENIZATION_FAILED" = 'TOKENIZATION_FAILED';
readonly documentationLink: "https://docs.purse.tech/docs/integrate/purse-api/additional-features/advanced-flow/sdk-references/Core/SecureFieldsClient#submit" = 'https://docs.purse.tech/docs/integrate/purse-api/additional-features/advanced-flow/sdk-references/Core/SecureFieldsClient#submit';

TOKENIZATION_FAILED.message​

readonly message: "Failed to tokenize payment information" = 'Failed to tokenize payment information';

UNEXPECTED_ERROR​

readonly UNEXPECTED_ERROR: object;

UNEXPECTED_ERROR.code​

readonly code: "UNEXPECTED_ERROR" = 'UNEXPECTED_ERROR';
readonly documentationLink: "https://docs.purse.tech/docs/integrate/purse-api/additional-features/advanced-flow/" = 'https://docs.purse.tech/docs/integrate/purse-api/additional-features/advanced-flow/';

UNEXPECTED_ERROR.message​

readonly message: "An unexpected error occurred" = 'An unexpected error occurred';