OPPApplePayRequestAuthorizationResult

@interface OPPApplePayRequestAuthorizationResult : NSObject

Class that reports the status code and errors that you return when a payment is authorized.

  • Initializes the result with the status code and list of errors.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithStatus:(PKPaymentAuthorizationStatus)status
                                    errors:(nullable NSArray<NSError *> *)errors;

    Swift

    init(status: PKPaymentAuthorizationStatus, errors: [any Error]?)

    Parameters

    status

    Payment authorization general status.

    errors

    List of errors in the Apple Pay form (available for iOS 11 and higher).

  • Payment authorization general status.

    Declaration

    Objective-C

    @property (nonatomic) PKPaymentAuthorizationStatus status;

    Swift

    var status: PKPaymentAuthorizationStatus { get set }
  • 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 specific NSError keys to use to enable rich error handling.

    Declaration

    Objective-C

    @property (nonatomic, copy, null_resettable) NSArray<NSError *> *errors;

    Swift

    var errors: [any Error]! { get set }