id
from any instance of VaultedPaymentMethod
returned by fetchVaultedPaymentMethods.
Upon a successful invocation of this function, the SDK will automatically trigger the standard payment callbacks.
Without additional data
TYPESCRIPT
Parameters
With additional data
In certain cases, you can passadditionalData
when starting a payment flow. For example,
you might need to pass CVV which can be recommended to increase auth rates.
Make sure that additionalData
is validated before being passed to this method.
TYPESCRIPT
Parameters
Returns
ThestartPaymentFlow
method initiates the payment process using the provided vaultedPaymentMethodId
.
This method is responsible for beginning the payment flow associated with a specific payment method stored in the vault.
Returns a Promise of void
.
Example
Refer to the following example for fetching vaulted payment methods. TheVaultManager
needs to be configured before validate
can be called.
Refer to the following example for configuring the VaultManager
.
Without additional data
TYPESCRIPT
With additional data
Refer to the following example for validation of the vaulted payment method additional data.TYPESCRIPT