VillageOptions
public class VillageOptions
Options to configure the SDK
-
The API key to identify the SDK to the API.
Declaration
Swift
public let apiKey: String
-
An initial base URL for the API host to use. Is comprised of the the scheme, host, and any context root for the API paths to use eg: https://myawesomeapp.com/api
Declaration
Swift
public let baseUrl: String
-
Which wallet to interact with for everything related to payment instruments, preferences, etc. Applies across the SDK. If a different Wallet is needed, instantiate the SDK again.
If not specified, will default to [Wallet.MERCHANT].
Declaration
Swift
public let wallet: Wallet?
-
:nodoc *
Declaration
Swift
public init( apiKey: String, baseUrl: String, wallet: Wallet? = nil )