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" = 'CONTAINER_NOT_FOUND';
readonly documentationLink: "https://docs.purse.tech/docs/integrate/purse-checkout/advanced-flow/sdk-references/Configuration/SecureFieldsFieldConfig#target" = 'https://docs.purse.tech/docs/integrate/purse-checkout/advanced-flow/sdk-references/Configuration/SecureFieldsFieldConfig#target';

CONTAINER_NOT_FOUND.message

readonly message: "Container element not found in the DOM" = '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-checkout/advanced-flow/sdk-references/Configuration/SecureFieldsConfig#fields" = 'https://docs.purse.tech/docs/integrate/purse-checkout/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-checkout/advanced-flow/" = 'https://docs.purse.tech/docs/integrate/purse-checkout/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-checkout/advanced-flow/sdk-references/Configuration/SecureFieldsFieldConfig#target" = 'https://docs.purse.tech/docs/integrate/purse-checkout/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-checkout/advanced-flow/sdk-references/Core/SecureFieldsClient#submit" = 'https://docs.purse.tech/docs/integrate/purse-checkout/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-checkout/advanced-flow/" = 'https://docs.purse.tech/docs/integrate/purse-checkout/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-checkout/advanced-flow/" = 'https://docs.purse.tech/docs/integrate/purse-checkout/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-checkout/advanced-flow/sdk-references/Configuration/SecureFieldsConfig#brands" = 'https://docs.purse.tech/docs/integrate/purse-checkout/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-checkout/advanced-flow/sdk-references/Core/SecureFieldsClient#submit" = 'https://docs.purse.tech/docs/integrate/purse-checkout/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-checkout/advanced-flow/" = 'https://docs.purse.tech/docs/integrate/purse-checkout/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-checkout/advanced-flow/sdk-references/Configuration/SecureFieldsConfig#fields" = 'https://docs.purse.tech/docs/integrate/purse-checkout/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-checkout/advanced-flow/#prerequisites" = 'https://docs.purse.tech/docs/integrate/purse-checkout/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';

TOKENIZATION_FAILED

readonly TOKENIZATION_FAILED: object;

TOKENIZATION_FAILED.code

readonly code: "TOKENIZATION_FAILED" = 'TOKENIZATION_FAILED';
readonly documentationLink: "https://docs.purse.tech/docs/integrate/purse-checkout/advanced-flow/sdk-references/Core/SecureFieldsClient#submit" = 'https://docs.purse.tech/docs/integrate/purse-checkout/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-checkout/advanced-flow/" = 'https://docs.purse.tech/docs/integrate/purse-checkout/advanced-flow/';

UNEXPECTED_ERROR.message

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