id
from any instance of PrimerVaultedPaymentMethod
returned by fetchVaultedPaymentMethods.
Upon a successful invocation of this function, the SDK will automatically trigger the standard payment callbacks.
additional data
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.
startPaymentFlow
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 result object of type Result.
The Result class represents the outcome of the operation, indicating success
or failure
.
By inspecting the returned Result object, you can determine the success or failure of the starting payment process for the vaulted payment method.
This allows you to handle different scenarios based on the result.