Apple Pay
-
PKPaymentRequest additions for using Apple Pay with Square.
See moreDeclaration
Objective-C
@interface PKPaymentRequest (Square) -
Lets the application retrieve a card nonce using a PKPayment instance obtained from Apple Pay.
See moreDeclaration
Objective-C
@interface SQIPApplePayNonceRequest : NSObject -
A completion handler that handles the result of an Apple Pay nonce request.
See
SQIPApplePayNonceRequestErrorfor possible error types.Declaration
Objective-C
typedef void (^SQIPApplePayNonceRequestCompletionHandler)( SQIPCardDetails *_Nullable, NSError *_Nullable)Parameters
cardDetailsContains details about the card, including the nonce.
nilwhen the request fails.errorAn error with domain
SQIPApplePayNonceRequestErrorDomainwhen the nonce request fails; otherwise,nil. -
The domain for errors that occur when requesting a card nonce using Apple Pay.
Declaration
Objective-C
extern NSString *const _Nonnull SQIPApplePayNonceRequestErrorDomain -
Possible error codes that can be returned as a result of attempting to create a card nonce.
See moreDeclaration
Objective-C
enum SQIPApplePayNonceRequestError : NSInteger {}
Apple Pay Reference