SetupParameters

data class SetupParameters @JvmOverloads constructor(val environment: OloPayEnvironment = OloPayEnvironment.Production, val freshSetup: Boolean = false, val googlePayConfig: Config? = null)

Parameters for setting up the Olo Pay API

Parameters

freshSetup

If true, this will be treated as a fresh setup of the API and cached values will be overwritten. This is especially useful for testing purposes when switching between Dev and Production environments. This should generally be false for production builds

googlePayConfig

Configuration parameters for Google Pay

environment

The environment the SDK will run in

Constructors

Link copied to clipboard
constructor(environment: OloPayEnvironment = OloPayEnvironment.Production, freshSetup: Boolean = false, googlePayConfig: Config? = null)

Creates a new SetupParameters instance

Properties

Link copied to clipboard
Link copied to clipboard
val freshSetup: Boolean = false

If true, this will be treated as a fresh setup of the API and cached values will be overwritten. This is especially useful for testing purposes when switching between Dev and Production environments. This should generally be false for production builds

Link copied to clipboard
val googlePayConfig: Config? = null

Configuration parameters for Google Pay