ULConfiguration

data class ULConfiguration(val upCode: String, val apiKey: String, var checkoutConfiguration: ULCheckoutConfiguration = ULCheckoutConfiguration(), var apiTimeout: Long = 10) : Serializable

Configuration object to setup the basic information, settings which will be used by the SDK.

Constructors

Link copied to clipboard
fun ULConfiguration(upCode: String, apiKey: String, checkoutConfiguration: ULCheckoutConfiguration = ULCheckoutConfiguration(), apiTimeout: Long = 10)

Init method to create a ULConfiguration object with the required properties

Functions

Link copied to clipboard

List of supported currencies for the given Api key and UpCode. This call returns an empty list until the SDK is not configured properly.

Link copied to clipboard

List of supported locales for the given Api key and UpCode. This call returns an empty list until the SDK is not configured properly.

Link copied to clipboard

Sets the currentLocale of the configuration object if the locale is supported. If you are not sure your Locale is supported use - availableLocales first to get the supported locales. If you are not sure your ULCurrency is supported use - availableCurrencies first to get the supported locales.

Link copied to clipboard
fun updatePath(path: String)

Sets the currentPath of the configuration object. This call reset the checkout flow.

Properties

Link copied to clipboard

Api key of the client. You need to set it before using the SDK

Link copied to clipboard
var apiTimeout: Long = 10

Timeout of all the apis in seconds within the SDK. Default is 10 seconds

Link copied to clipboard

Configuration object to manage the behaviour of the checkout flow

Link copied to clipboard
var currentLocale: ULLocale? = null
Link copied to clipboard
Link copied to clipboard

UP code of the client. You need to set it before using the SDK