How visa direct works,
1) what apis I need to use to transfer the payment from merchant to multiple receiver. Please provide all details whatever possible with steps to inetegrate
Solved! Go to Solution
Hi @acme,
Please review the Visa Direct documentation via this link - https://developer.visa.com/capabilities/visa_direct/docs
In order to use Visa Direct, all Visa Direct programs require the originator to be a licensed Visa acquirer or be sponsored by a licensed Visa acquirer who is ready and able to sponsor Visa Direct programs.
After having read the documentation, if you meet those requirements, then please click through the link in those paragraphs to the Visa Direct Program Implementation Questionnaire, fill it out, and submit to the email address listed on that form.
Please let us know if you have additional questions.
I am trying to use sandbox apis, can you please tell me which userid password need to pass in header,
I got following response from multipushfundstransactions api call
stdClass Object ( [responseStatus] => stdClass Object ( [status] => 415 [code] => 9001 [severity] => ERROR [message] => Unsupported Media Type [info] => )
Tried following code but getting blank response
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'authorization: Basic '.$auth,
"Accept: application/json",
));
//curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
//curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt($ch, CURLOPT_SSLCERT, 'cert.pem');
curl_setopt($ch, CURLOPT_SSLKEY, 'key_e888d794-7b37-4fa9-b061-54c8.pem');
curl_setopt($ch, CURLOPT_CAINFO, 'DigiCertGlobalRootCA.crt'); );
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
//curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PUT");
//curl_setopt($ch, CURLOPT_PUT, true);
$resArray = curl_exec($ch);
@SLiwaiting for reply please reply, following is code getting blank response
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt($ch, CURLOPT_SSLCERT, 'cert.pem');
curl_setopt($ch, CURLOPT_SSLKEY, 'key_.pem'); //$this->config->getPrivateKey());
curl_setopt($ch, CURLOPT_CAINFO, 'VDPCA-SBX.pem'); //$this->config->getCaCertPath());
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
//curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
//curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PUT");
//curl_setopt($ch, CURLOPT_PUT, true);
$resArray = curl_exec($ch);
$head = json_decode($resArray);
Hi @acme,
We usually do not troubleshoot developer's code. Below are some useful tools/resources that you can use to test out credentials and APIs on VDP.
How to run the Hello World API with Mutual SSL on Postman:
Visa Developer Center Playground: Tool designed exclusively for testing and troubleshooting Visa APIs that are exposed through the Visa Developer Platform (VDP). It comes integrated with all required authentication methods to connect and get going with VDP APIs.
How to run a Visa Direct transaction using Python:
Hope this helps.
@SLi thank you for details information,
the third url is not working (https://community.developer.visa.com/t5/Webinars/Run-a-Visa-Direct-Transaction-Using-Python-in-1-hr-...)
can you please provide same for PHP it will help me.
Thanks in advance
Hi @acme,
Please try below link: