OPPApplePayRequestAuthorizationResult
@objc
public final class OPPApplePayRequestAuthorizationResult : NSObject
Class that reports the status code and errors that you return when a payment is authorized.
-
Payment authorization general status.
Declaration
Swift
@objc public var status: PKPaymentAuthorizationStatus
-
Any errors that applied. These errors will be displayed to the user to correct (available for iOS 11 and higher). Errors should be ordered from most to least serious. See
PKError
for specificNSError
keys to use to enable rich error handling.Declaration
Swift
@objc public var errors: [Error]! { get set }
-
Initializes the result with the status code and list of errors.
Declaration
Swift
@objc public init(status: PKPaymentAuthorizationStatus, errors: [Error]?)
Parameters
status
Payment authorization general status.
errors
List of errors in the Apple Pay form (available for iOS 11 and higher).
Return Value
Returns an object of type OPPApplePayRequestAuthorizationResult.