public class Configuration
Holds global configuration information
public static Configuration INSTANCE
Holds global configuration information
@JvmStatic @JvmOverloads public static void configure(@NotNull java.net.URI serverUrl, long timeout, @Nullable java.lang.String posLicenseKey, @Nullable java.lang.String paypointId, @Nullable com.worldpay.Logger logger, @Nullable AppDetails appDetails)
Sets up the configuration for the SDK.
serverUrl
- a Uri for the remote servertimeout
- Sets the timeout for the session in seconds.posLicenseKey
- the optional a unique token that authenticates your point of sale application. See class RegistrationManager
paypointId
- optional paypoint ID that will be used in server requests unless overridden.logger
- optional Logger logging interface.appDetails
- class AppDetails
provides details of the current application.@JvmStatic @JvmOverloads public static void configure(@NotNull java.net.URI serverUrl, long timeout, @Nullable java.lang.String posLicenseKey, @Nullable java.lang.String paypointId, @Nullable com.worldpay.Logger logger)
Sets up the configuration for the SDK.
serverUrl
- a Uri for the remote servertimeout
- Sets the timeout for the session in seconds.posLicenseKey
- the optional a unique token that authenticates your point of sale application. See class RegistrationManager
paypointId
- optional paypoint ID that will be used in server requests unless overridden.logger
- optional Logger logging interface.@JvmStatic @JvmOverloads public static void configure(@NotNull java.net.URI serverUrl, long timeout, @Nullable java.lang.String posLicenseKey, @Nullable java.lang.String paypointId)
Sets up the configuration for the SDK.
serverUrl
- a Uri for the remote servertimeout
- Sets the timeout for the session in seconds.posLicenseKey
- the optional a unique token that authenticates your point of sale application. See class RegistrationManager
paypointId
- optional paypoint ID that will be used in server requests unless overridden.@JvmStatic @JvmOverloads public static void configure(@NotNull java.net.URI serverUrl, long timeout, @Nullable java.lang.String posLicenseKey)
Sets up the configuration for the SDK.
serverUrl
- a Uri for the remote servertimeout
- Sets the timeout for the session in seconds.posLicenseKey
- the optional a unique token that authenticates your point of sale application. See class RegistrationManager
@JvmStatic @JvmOverloads public static void configure(@NotNull java.net.URI serverUrl, long timeout)
Sets up the configuration for the SDK.
serverUrl
- a Uri for the remote servertimeout
- Sets the timeout for the session in seconds.public void setPosLicenseKey(@Nullable java.lang.String posLicenseKey)
sets a new license key for authenticating the POS application
posLicenseKey
- the new key to use.