MellonGroupPOS.getApiKey Method
Public Function getApiKey( _
ByVal posCode As String _
) As Dictionary(Of String, String)
This language is not supported or no code example is available.
Parameters
- posCode
- string
The EFT-POS authentication code
Return Value
Dictionary<string, string>
It returns an API key, which will be used in every method.
IMPORTANT: The API Key should be saved by the software!
In order for the client software to retrieve the X-Api-Key, the following workflow is to be followed:
- The user turns on the EFT-POS Or opens the softPOS application on their phone
- The user navigates to the relevant POS menu option named "Link with 3rd party services"
- The EFT-POS shows an authentication code. The user enters it in the client software.
- The client software exchanges (redeems) the authentication code with the API key, using the authentication code redeem API Call As described below
- The client software saves the API key And uses it for the rest of the integration lifetime
The client software can save/cache the API key And use it To start transactions at any point In time.
The merchant has the ability To revoke the access permissions at any time, so the Api key may become invalid.
In this case, the client software should handle this as an error condition.
Dictionary<string, string> myAPI = mlg.getApiKey("12345678"); // Where '12345678' is the POS Authentication Code string APIKey = myAPI["ID"];
This language is not supported or no code example is available.