OloPayApiInitializer
@objc
public class OloPayApiInitializer : NSObject, OloPayApiInitializerProtocol
Class to set up and initialize the Olo Pay API
-
Setup the Olo Pay API
Important
This should be called as early as possible in the app, preferably in the AppDelegate or SceneDelegate.
Declaration
Swift
public func setup(with parameters: OPSetupParameters? = nil, completion: OPVoidBlock? = nil)
Parameters
parameters
Optional parameters to customize the Olo Pay API
completion
Optional completion handler for when the SDK is fully initialized