public class TerminalSettings
extends java.lang.Object
terminalId
are optional, and can be left out.Constructor and Description |
---|
TerminalSettings(java.lang.String terminalId)
Constructor.
|
TerminalSettings(java.lang.String terminalId,
java.lang.String[] authHosts,
java.lang.String[] confHosts)
Constructor.
|
TerminalSettings(java.lang.String terminalId,
java.lang.String[] authHosts,
java.lang.String[] confHosts,
boolean forceLogin)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getAuthorisationHosts() |
java.lang.String[] |
getConfigurationHosts() |
boolean |
getForceLogin()
Gets the value of the force login flag.
|
java.lang.String |
getLanguage() |
java.lang.String |
getTerminalId()
Gets the terminal id used by this payment terminal.
|
void |
setAuthorisationHosts(java.lang.String... hosts) |
void |
setConfigurationHosts(java.lang.String... hosts) |
void |
setForceLogin(boolean forceLogin)
Sets the value of the force login flag.
|
void |
setLanguage(java.lang.String value) |
public TerminalSettings(java.lang.String terminalId)
terminalId
- The terminal id that this payment terminal should use.public TerminalSettings(java.lang.String terminalId, java.lang.String[] authHosts, java.lang.String[] confHosts)
terminalId
- The terminal id that this payment terminal should use.authHosts
- Optional. The address(es) of the authorisation host.confHosts
- Optional. The address(es) of the configuration host.public TerminalSettings(java.lang.String terminalId, java.lang.String[] authHosts, java.lang.String[] confHosts, boolean forceLogin)
terminalId
- The terminal id that this payment terminal should use.authHosts
- Optional. The address(es) of the authorisation host.confHosts
- Optional. The address(es) of the configuration host.forceLogin
- Force a connection to the configuration and authorisation hosts.public java.lang.String[] getAuthorisationHosts()
public void setAuthorisationHosts(java.lang.String... hosts)
hosts
- Zero, or more addresses to the host(s) that should be used for transaction
authorisation. Each address should be an IP-address, followed by a port number.
Example: 185.27.171.42:55144
is the address of the Westpay
test host.
Note! The payment application only supports two addresses at most - one primary address, and a backup.
public java.lang.String[] getConfigurationHosts()
public void setConfigurationHosts(java.lang.String... hosts)
hosts
- Zero, or more addresses to the host(s) that should be used for terminal
configuration. Each address should be an IP-address, followed by a port number.
Example: 185.27.171.42:55133
is the address of the Westpay
test host.
Note! The payment application only supports two addresses at most - one primary address, and a backup.
public java.lang.String getLanguage()
public void setLanguage(java.lang.String value)
value
- The primary language that should be used in the payment terminal.
The language must be specified using 3 letter ISO639-2 codes.
The currently implemented languages in the payment terminal are:
Note! The select language has to be both implemented and enabled by the terminal configuration.
public java.lang.String getTerminalId()
public boolean getForceLogin()
public void setForceLogin(boolean forceLogin)
forceLogin
- True to force a connection, false otherwise.