This applies for both SDK and Websockets
payconfig.xml
file as your apiKey
, for more information click here.<?xml version="1.0" encoding="utf-8"?> <resources> <string name="gatewayLiveUrl">https://</string> <string name="gatewayTestUrl">https://</string> <string name="gatewayDevUrl">https://</string> <string name="apiKey"></string> </resources>
Set it programatically using this code in the Request. This will set the API key to be used.
AndroidTerminal.getInstance().setApiKey("5a317b9f93f0a537182be4a028fe6a5ab437d310a687c05b52385af4d8c080fe9c46e9fd0451040a34145f30cea553d2101f0b39c980095358c13175f54a0bb5");
AndroidTerminal.getInstance().initWithConfiguration(currentContext, "136007");
set the APIKey programatically using request_setAPIKey
payload message.
{
"type": "REQ_SET_API_KEY",
"data": {
"key": "API_KEY"
}
}
This applies for both SDK and Websockets
payconfig.xml
file as your integrationID
,for more information click here.<?xml version="1.0" encoding="utf-8"?> <resources> <string name="gatewayLiveUrl">https://</string> <string name="gatewayTestUrl">https://</string> <string name="gatewayDevUrl">https://</string> <string name="apiKey"></string> <string name="integrationId"></string> </resources>
Set it programatically using this code in the Request. This will set the IntegrationID to be used.
AndroidTerminal.getInstance().setIntegrationId("a8643a27818b01acc4980c5527fac3d1653e1b05a8643a27818b01acc4980c5527fac3d1653e1b05a8643a27818b01acc4980c5527fac3d1653e1b05a8643a27");
AndroidTerminal.getInstance().setApiKey("5a317b9f93f0a537182be4a028fe6a5ab437d310a687c05b52385af4d8c080fe9c46e9fd0451040a34145f30cea553d2101f0b39c980095358c13175f54a0bb5");
AndroidTerminal.getInstance().initWithConfiguration(currentContext, "136007");
Set the integration ID programatically using request_setIntegrationID
payload message.
{
"type": "REQ_SET_INTEGRATION_ID",
"data": {
"key": "INTEGRATION_ID"
}
}