Protocols
The following protocols are available globally.
-
Protocol for mocking/testing purposes. See
See moreOloPayApiInitializerfor documentationDeclaration
Swift
@objc public protocol OloPayApiInitializerProtocol : NSObjectProtocol -
Protocol to hook into important events in the ApplePay flow
Required: Implement
applePaymentMethodCreatedto get payment method details that need to be submitted to Olo’s Ordering API when submitting a basket with OloPayOptional: Implement
See moreapplePaymentCompletedto know when the ApplePay sheet is dismissedDeclaration
Swift
@objc public protocol OPApplePayContextDelegate : NSObjectProtocol -
Protocol for mocking/testing purposes. See
See moreOPApplePayContextfor documentationDeclaration
Swift
@objc public protocol OPApplePayContextProtocol : NSObjectProtocol -
Defines the interface that should be adopted to receive updates from instances of
See moreOPPaymentCardDetailsFormDeclaration
Swift
@objc public protocol OPPaymentCardDetailsFormDelegate : NSObjectProtocol -
Protocol to hook into editing events with
See moreOPPaymentCardDetailsViewDeclaration
Swift
@objc public protocol OPPaymentCardDetailsViewDelegate : NSObjectProtocol -
Protocol for mocking/testing purposes. See
See moreOPPaymentMethodfor documentationDeclaration
Swift
@objc public protocol OPPaymentMethodProtocol : NSObjectProtocol -
Protocol for mocking/testing purposes. See
OPPaymentMethodParamsdor documentationDeclaration
Swift
@objc public protocol OPPaymentMethodParamsProtocol : NSObjectProtocol
Protocols Reference