SQIPApplePayNonceRequest

@interface SQIPApplePayNonceRequest : NSObject

Lets the application retrieve a card nonce using a PKPayment instance obtained from Apple Pay.

  • Creates a new Apple Pay nonce request.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithPayment:(nonnull PKPayment *)payment;

    Swift

    init(payment: PKPayment)

    Parameters

    payment

    The PKPayment that should be used to request a nonce.

  • Performs the request to retrieve a card nonce.

    Declaration

    Objective-C

    - (void)performWithCompletionHandler:
        (nonnull SQIPApplePayNonceRequestCompletionHandler)completionHandler;

    Swift

    func perform(completionHandler: @escaping SQIPApplePayNonceRequestCompletionHandler)

    Parameters

    completionHandler

    The completion handler to be called upon success or failure of the nonce request.