To familiarize with methods of API work we recommend to read VISA guide.
App registration and getting RSA Private key
Create new application and don't forget to mark API's you need to get access to. Otherwise you'll have to register new application..
After app creation you will see the window with RSA PRIVATE KEY:
It' s necessary to copy the received private key and save it in file.You will need it for getting VISA API.
Key content starts and ends the following way
-----BEGIN RSA PRIVATE KEY-----
...
-----END RSA PRIVATE KEY-----
Login and password
##Certificate
Certificate is required to download and rename in .txt extension file. You will need file content in order to set API running.
It is required to copy the whole file content
-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----
Template process
Click Use this process and template "Foreign ExchangeRates" will copy to your environment.
Description of API Foreign ExchangeRates on the VISA website.
Select the "Set parameter" logic and fill the fields userID and password with username and password values from the VISA administrator panel.
The next step is to select the API logic and expand the "Additionally" block
You have to insert the private key and test certificate provided to you by VISA to the "Sign the request by certificate" module.
The key and certificate should be inserted in the following order:
-----BEGIN RSA PRIVATE KEY-----
...
-----END RSA PRIVATE KEY-----
-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----
After this you may go to VIEW mode and send a test request by pressing the button "Add task":
It should contain the following parameters:
sourceCurrencyCode
- currency code of initial amountdestinationCurrencyCode
- currency code which we want to convert the amount tosourceAmount
- amount
Once the parameters are filled, press "Send task".
Result of API operation:
destinationAmount
- total amount after conversionconversionRate
- conversion rate
The template contains the URL of the sandbox. To get access to the operational environment it is necessary to refer to developer@visa.com