- Download and install httpcomponents library from https://hc.apache.org/httpcomponents-client-4.5.x/index.html
- Make sure to include the jars in your classpath
- Log on to beta.developer.visa.com and click on your app name
- Copy the APIKey and Shared secret to any text editor
- Download the java sample code Cybersourcesample.java or VisaCheckoutsample.java to your local folder
- Replace "put your api key here" with the APIKey from step 4
- Replace "put your shared secret here" with the Shared Secret from step 4
- Compile and run the sample code
- You should see response from the respective API calls
- Download and install httpcomponents library from https://hc.apache.org/httpcomponents-client-4.5.x/index.html
- Make sure to include the jars in your classpath
- Log on to beta.developer.visa.com and click on your app name
- Copy the userid and password from the Keys/Apps tab to any text editor
- By this time you should have created the certificate keystore
- Download the java sample code VisaDirectsample.java to your local folder
- Replace "{put your user id here}" with the user id from step 4
- Replace "{put your password here}" with the password from step 4
- Replace "{put the path to the keystore file here}" with the path to the keystore file
- Replace "{put the keystore password}" with the path to the keystore password
- Replace "{put the private key password here}" with the private key password
- Compile and run the sample code
- You should see response from the VisaDirect API calls