Hi, I am java developer and I am junior in developer.visa.com. I need implement p2p transfer using VISA Direct api. For this transfer I used PullFunds-PushFunds api from VISA Direct. But, I have a question: how to sender in p2p transfer confirmed debit from her card's in PullFunds API? I didn't see in response of PullFunds api, url for redirect sender to OTP confirmation or 3DSecure confirmation?
Hi @saahon, Thank you for reaching out. An agent will get back to you soon. Until then, if any community member has information that may be helpful, feel free to reply to this thread.
Hey @saahon,
Implementing a P2P transfer with Visa Direct involves using both PullFunds
and PushFunds
APIs. To incorporate 3-D Secure (3DS) for sender authentication in the PullFunds
API, follow these steps:
Initiate the PullFunds
API Call: Include necessary fields for 3DS, such as purchaseIdentifier
with type=3DS
, and provide the redirectUrl
.
Redirect the Sender for 3DS Authentication: After the PullFunds
API call, you should receive a response with a 3DS
URL. Redirect the sender to this URL for authentication.
Handle the 3DS Authentication Response: Once the sender completes 3DS authentication, they will be redirected to your redirectUrl
. Handle this callback to proceed with the transaction.
Here's a basic Java example using Spring Boot:
Step 1: Setup your Spring Boot application.
Step 2: Implement the PullFunds
API call.
Step 3: Define the TransferRequest
class.
In this example:
/pullFunds
endpoint initiates the PullFunds
API call and redirects the sender to the 3DS authentication page./3ds-callback
endpoint handles the response after the sender completes the 3DS authentication.Replace placeholders with your actual data and handle necessary error cases. Consult the Visa Direct API documentation for specific details and required fields.