SetupParameters

data class SetupParameters @JvmOverloads constructor(freshSetup: Boolean, googlePayConfig: Config?)

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

Constructors

SetupParameters
Link copied to clipboard
fun SetupParameters(freshSetup: Boolean = false, googlePayConfig: Config? = null)

Creates a new SetupParameters instance

Properties

freshSetup
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

googlePayConfig
Link copied to clipboard
val googlePayConfig: Config? = null

Configuration parameters for Google Pay