API Key

You will need to contact support@worldnettps.com or have a pre existing account to obtain a key.

API keys are used to manage authentication with the gateway. Details of creating a key can be found here.

For integrations managing multiple merchant accounts you may need an ISV account that can use an API key for multiple merchants.

Setting an API Key

Setting via Payconfig

This applies for both SDK and Websockets

  • Setting it in the payconfig.xml file as your apiKey, for more information click here.
<?xml version="1.0" encoding="utf-8"?>
<resources>
  <string name="gatewayLiveUrl">https://https://payments.worldnettps.com/merchant</string>
  <string name="gatewayTestUrl">https://https://testpayments.worldnettps.com/merchant</string>
  <string name="gatewayDevUrl">https://https://devpayments.worldnettps.com/merchant</string>
  <string name="apiKey"></string>
</resources>

Setting via Code

For SDK

Set it programatically using this code in the Request. This will set the API key to be used.

  • Request

AndroidTerminal.getInstance().setApiKey("5a317b9f93f0a537182be4a028fe6a5ab437d310a687c05b52385af4d8c080fe9c46e9fd0451040a34145f30cea553d2101f0b39c980095358c13175f54a0bb5");
AndroidTerminal.getInstance().initWithConfiguration(currentContext, "136007");
	
	

For Websockets

set the APIKey programatically using request_setAPIKey payload message.

  • Request

{
  "type": "REQ_SET_API_KEY",
  "data": {
    "key": "API_KEY"
  }
}
	
	

Integration ID

You will need to contact support@worldnettps.com or have a pre existing account to obtain a Integration ID.

Setting an Integration ID

Setting via Payconfig

This applies for both SDK and Websockets

  • Setting it in the payconfig.xml file as your integrationID,for more information click here.
<?xml version="1.0" encoding="utf-8"?>
<resources>
  <string name="gatewayLiveUrl">https://https://payments.worldnettps.com/merchant</string>
  <string name="gatewayTestUrl">https://https://testpayments.worldnettps.com/merchant</string>
  <string name="gatewayDevUrl">https://https://devpayments.worldnettps.com/merchant</string>
  <string name="apiKey"></string>
  <string name="integrationId"></string>
</resources>

Setting via Code

For SDK

Set it programatically using this code in the Request. This will set the IntegrationID to be used.

  • Request

AndroidTerminal.getInstance().setIntegrationId("a8643a27818b01acc4980c5527fac3d1653e1b05a8643a27818b01acc4980c5527fac3d1653e1b05a8643a27818b01acc4980c5527fac3d1653e1b05a8643a27");
AndroidTerminal.getInstance().setApiKey("5a317b9f93f0a537182be4a028fe6a5ab437d310a687c05b52385af4d8c080fe9c46e9fd0451040a34145f30cea553d2101f0b39c980095358c13175f54a0bb5");
AndroidTerminal.getInstance().initWithConfiguration(currentContext, "136007");
	
	

For Websockets

Set the integration ID programatically using request_setIntegrationID payload message.

  • Request

{
    "type": "REQ_SET_INTEGRATION_ID",
    "data": {
    "key": "INTEGRATION_ID"
    }
}
	
	

Copyright © 2024 | Powered by DokuWiki