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(for environment: OPEnvironment = .production, completion: OPVoidBlock? = nil)

    Parameters

    for

    The environment to use for setting up and initializing the SDK

    completion

    Optional completion handler for when the SDK is fully initialized