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