Skip to main content

Vulnerabilities

Introduction

The Vulnerabilities module exposes features for managing customer vulnerabilities.

Vulnerable customers are individuals who, due to personal circumstances, are especially susceptible to detriment, particularly when a firm is not acting with appropriate levels of care.

These circumstances are grouped into three categories:

  • HealthVulnerabilities physical or mental health conditions that affect decision-making capabilities or day-to-day functioning.
  • CompetenceVulnerabilities low financial literacy, poor language skills, or limited digital ability that makes navigating financial decisions more challenging.
  • LifeVulnerabilities major life changes such as bereavement, caring responsibilities, or geographic exposure to fraud, which can temporarily impair judgment or financial stability.

In addition to the categorised vulnerabilities, the customer can describe any further support or accessibility requirements in plain text via additionalSupportNeeds.

Vulnerabilities Service

The VulnerabilitiesService can be used for managing vulnerabilities related operations.

Get Customer Vulnerabilities

Use the get method to retrieve the CustomerVulnerabilities.

import { Wallet } from '@paysafe/paysafe-wallet-saas-web/wallet';

Wallet.getInstance().getVulnerabilitiesService().get()
.then(vulnerabilities => console.log('Current vulnerabilities:', vulnerabilities))
.catch(error => console.error('Error getting vulnerabilities', error));

Update Customer Vulnerabilities

Use the update method to update the vulnerabilities by providing a CustomerVulnerabilities object.

import { Wallet } from '@paysafe/paysafe-wallet-saas-web/wallet';

const vulnerabilities = {
health: {
physicalDisability: true,
gamblingAddiction: false
},
competence: {
poorLiteracy: true
},
additionalSupportNeeds: 'Please use plain language in all communications.'
};

Wallet.getInstance().getVulnerabilitiesService().update(vulnerabilities)
.then(updatedVulnerabilities => console.log('Vulnerabilities updated:', updatedVulnerabilities))
.catch(error => console.error('Error updating vulnerabilities', error));