OPSetupParameters
@objc
public class OPSetupParameters : NSObject
Optional parameters for setting up the Olo Pay API
-
This property is deprecated and will be removed in a future release
Declaration
Swift
@available(*, deprecated, message: "The freshSetup parameter is deprecated and will be removed in a future release") 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?
-
The environment the SDK is going to be used in
Declaration
Swift
public let environment: OPEnvironment
-
This constructor is deprecated. Alternative constructors that don’t take a
freshSetup
parameter should be used instead.Declaration
Swift
@available(*, deprecated, message: "Use alternative constructors without the freshSetup parameter") public init( withEnvironment environment: OPEnvironment? = OPEnvironment.production, withFreshSetup freshSetup: Bool? = false, withApplePayMerchantId merchantId : String? = "", withApplePayCompanyLabel companyLabel : String? = "" )
-
Declaration
Swift
public init( withEnvironment environment: OPEnvironment? = OPEnvironment.production, withApplePayMerchantId merchantId : String? = "", withApplePayCompanyLabel companyLabel : String? = "" )