Skip to content

Latest commit

 

History

History
 
 

vdp-php

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

PHP Sample Code for Visa API calls

Installation

To install the dependencies run the following command :

$ composer install

Usage

We use phpunit to run our sample calls

Update the configuration.ini file under the root folder. For more information on configuration.ini refer :

Then you can run the API calls using the command below:

$ ./vendor/bin/phpunit

To run an individual test file :

$ ./vendor/bin/phpunit tests/atmlocator/LocateAtmApiTest.php

You would need to generate a Call Id for calling Visa Checkout. The documentation for generating Call Id can be found at :

The sample code provided reads the credentials from configuration file as plain text. As a best practice we recommend you to store the credentials in an encrypted form and decrypt while using them.