How To Use Visa Receiver Directed Payouts

Visa Receiver Directed Payouts

How to Use Receiver Directed Payouts

Step 1: Load the SDK JavaScript Library

First, load the JavaScript library. This can be done using the following script:


SDK will expose VisaSecureCapture Object with multiple methods, which are explained further down this page.

Step 2: Configure the SDK

The VisaSecureCapture.configure(ClientModalSettings) function needs to be called before all the other functions. This function tells the SDK where to inject the iFrame. Provide the elementId of the HTML element where the iFrame is to be placed within.


Step 3: Initialize the Flow

The VisaSecureCapture.init({idToken, entryPoint, preferredLanguage}) function will begin the RDP flow. It requires an idToken to authenticate the client and user.


Step 4: Event Subscription

The VisaSecureCapture.on(eventName, callbackFn(UserAliasInfo)) function allows the client to subscribe to events triggered by user actions within the RDP webpage. For example, the 'UI.ready' event is triggered when the SDK has successfully opened the UI, and the session is beginning.


Event details:

'UI.ready'

'UI.closed'

User Actions – Events letting the client know about actions made by the user in the window.

'UI.Card.added'

'UI.Card.removed'

'UI.Card.updated'

'UI.Card.made-default'

Step 5: Event Unsubscription

The VisaSecureCapture.off(eventName) function allows the client to unsubscribe from events.

Sample Code