OPSetupParameters
@objc
public class OPSetupParameters : NSObject
Optional parameters for setting up the Olo Pay API
-
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
Note
This should generall be set to false for production buildsDeclaration
Swift
public let freshSetup: Bool
-
If using ApplePay, this is the merchant Id registered with Apple
Important
This is required when using ApplePayDeclaration
Swift
public let applePayMerchantId: String?
-
If using ApplePay, this is the company label that will be displayed on the ApplePay payment sheet
Important
This is required when using ApplePayDeclaration
Swift
public let applePayCompanyLabel: String?
-
Creates an instance of
OPSetupParameters
to be used withOloPayApiInitializer.setup(...)
Declaration
Swift
public init(withMerchantId merchantId: String? = "", withCompanyLabel companyLabel: String? = "", withFreshSetup freshSetup: Bool = false)
Parameters
merchantId
ApplePay merchant Id registered with Apple
companyLabel
Company name displayed on the ApplePay sheet
freshSetup
Ignore any cached setup values and treat this as a fresh setup. Should typically be false for release builds