1
async configure(): Promise<void>
typescript
copy
Configures an instance of VaultManager
, which can then be used to:
- fetch a list of vaulted payment methods for the
customerId
attached to the client session - delete a vaulted payment method for the
customerId
attached to the client session - perform a payment using a vaulted payment method and additional data (e.g. CVV)
- validate the additional data used to perform a payment (e.g. validate CVV)
Returns
The configure
method performs the configuration of the Vault Manager and returns a Promise of void
.
Example
12345678910111213
import { VaultManager} from '@primer-io/react-native'; async function configureVaultManager() { try { let vaultManager = new VaultManager(); await vaultManager.configure() console.log('Vault Manager configured successfully'); } catch (error) { console.error('Error configuring Vault Manager:', error); }}
typescript
copy