Documentation Archive Developer
Search

PassKit Changes for Objective-C

PassKit

PKAddPaymentPassViewController.h

Declaration
From
@property(nonatomic, copy, readonly) NSString *encryptionScheme
To
@property(nonatomic, copy, readonly) PKEncryptionScheme encryptionScheme

Declaration
From
- (instancetype)initWithEncryptionScheme:(NSString *)encryptionScheme
To
- (instancetype)initWithEncryptionScheme:(PKEncryptionScheme)encryptionScheme

Declaration
From
@property(nonatomic, copy) NSString *paymentNetwork
To
@property(nonatomic, copy) PKPaymentNetwork paymentNetwork

PKConstants.h

Header
FromPassKit/PKPaymentAuthorizationViewController.h
ToPassKit/PKConstants.h

Header
FromPassKit/PKPaymentAuthorizationViewController.h
ToPassKit/PKConstants.h

Header
FromPassKit/PKPaymentAuthorizationViewController.h
ToPassKit/PKConstants.h

Header
FromPassKit/PKPaymentAuthorizationViewController.h
ToPassKit/PKConstants.h

Header
FromPassKit/PKPaymentAuthorizationViewController.h
ToPassKit/PKConstants.h

Header
FromPassKit/PKPaymentAuthorizationViewController.h
ToPassKit/PKConstants.h

Header
FromPassKit/PKPaymentAuthorizationViewController.h
ToPassKit/PKConstants.h

Header
FromPassKit/PKPaymentAuthorizationViewController.h
ToPassKit/PKConstants.h

Header
FromPassKit/PKPaymentAuthorizationViewController.h
ToPassKit/PKConstants.h

PKContact.h

Declaration
From
@property(nonatomic, retain) NSString *emailAddress
To
@property(nonatomic, strong) NSString *emailAddress

Declaration
From
@property(nonatomic, retain) NSPersonNameComponents *name
To
@property(nonatomic, strong) NSPersonNameComponents *name

Declaration
From
@property(nonatomic, retain) CNPhoneNumber *phoneNumber
To
@property(nonatomic, strong) CNPhoneNumber *phoneNumber

Declaration
From
@property(nonatomic, retain) CNPostalAddress *postalAddress
To
@property(nonatomic, strong) CNPostalAddress *postalAddress

PKPass.h

Declaration
From
@property(nonatomic, assign, readonly) PKPaymentPass *paymentPass
To
@property(nonatomic, readonly) PKPaymentPass *paymentPass

PKPassLibrary.h

PKPayment.h

Declaration
From
@property(nonatomic, readonly) ABRecordRef billingAddress
To
@property(nonatomic, assign, readonly) ABRecordRef billingAddress

Declaration
From
@property(nonatomic, readonly) PKContact *billingContact
To
@property(nonatomic, strong, readonly) PKContact *billingContact

Declaration
From
@property(nonatomic, readonly) ABRecordRef shippingAddress
To
@property(nonatomic, assign, readonly) ABRecordRef shippingAddress

Declaration
From
@property(nonatomic, readonly) PKContact *shippingContact
To
@property(nonatomic, strong, readonly) PKContact *shippingContact

Declaration
From
@property(nonatomic, readonly) PKShippingMethod *shippingMethod
To
@property(nonatomic, strong, readonly) PKShippingMethod *shippingMethod

Declaration
From
@property(nonatomic, readonly) PKPaymentToken *token
To
@property(nonatomic, strong, readonly) PKPaymentToken *token

PKPaymentAuthorizationController.h (Added)

PKPaymentAuthorizationViewController.h

Declaration
From
+ (BOOL)canMakePaymentsUsingNetworks:(NSArray<NSString *> *)supportedNetworks
To
+ (BOOL)canMakePaymentsUsingNetworks:(NSArray<PKPaymentNetwork> *)supportedNetworks

Declaration
From
+ (BOOL)canMakePaymentsUsingNetworks:(NSArray<NSString *> *)supportedNetworks capabilities:(PKMerchantCapability)capabilties
To
+ (BOOL)canMakePaymentsUsingNetworks:(NSArray<PKPaymentNetwork> *)supportedNetworks capabilities:(PKMerchantCapability)capabilties

Header
FromPassKit/PKPaymentAuthorizationViewController.h
ToPassKit/PKConstants.h

Header
FromPassKit/PKPaymentAuthorizationViewController.h
ToPassKit/PKConstants.h

Header
FromPassKit/PKPaymentAuthorizationViewController.h
ToPassKit/PKConstants.h

Header
FromPassKit/PKPaymentAuthorizationViewController.h
ToPassKit/PKConstants.h

Header
FromPassKit/PKPaymentAuthorizationViewController.h
ToPassKit/PKConstants.h

Header
FromPassKit/PKPaymentAuthorizationViewController.h
ToPassKit/PKConstants.h

Header
FromPassKit/PKPaymentAuthorizationViewController.h
ToPassKit/PKConstants.h

Header
FromPassKit/PKPaymentAuthorizationViewController.h
ToPassKit/PKConstants.h

Header
FromPassKit/PKPaymentAuthorizationViewController.h
ToPassKit/PKConstants.h

PKPaymentButton.h

PKPaymentMethod.h

Declaration
From
@property(nonatomic, readonly) NSString *displayName
To
@property(nonatomic, copy, readonly) NSString *displayName

Declaration
From
@property(nonatomic, readonly) NSString *network
To
@property(nonatomic, copy, readonly) PKPaymentNetwork network

Declaration
From
@property(nonatomic, readonly) PKPaymentPass *paymentPass
To
@property(nonatomic, copy, readonly) PKPaymentPass *paymentPass

PKPaymentPass.h

Declaration
From
@property(readonly) NSString *deviceAccountIdentifier
To
@property(weak, readonly) NSString *deviceAccountIdentifier

Declaration
From
@property(readonly) NSString *deviceAccountNumberSuffix
To
@property(weak, readonly) NSString *deviceAccountNumberSuffix

PKPaymentRequest.h

Declaration
From
@property(nonatomic, retain) PKContact *billingContact
To
@property(nonatomic, strong) PKContact *billingContact

Declaration
From
@property(nonatomic, retain) PKContact *shippingContact
To
@property(nonatomic, strong) PKContact *shippingContact

Declaration
From
@property(nonatomic, copy) NSArray<NSString *> *supportedNetworks
To
@property(nonatomic, copy) NSArray<PKPaymentNetwork> *supportedNetworks

PKPaymentToken.h

Declaration
From
@property(nonatomic, readonly) NSData *paymentData
To
@property(nonatomic, copy, readonly) NSData *paymentData

Declaration
From
@property(nonatomic, readonly) NSString *paymentInstrumentName
To
@property(nonatomic, copy, readonly) NSString *paymentInstrumentName

Declaration
From
@property(nonatomic, readonly) PKPaymentMethod *paymentMethod
To
@property(nonatomic, strong, readonly) PKPaymentMethod *paymentMethod

Declaration
From
@property(nonatomic, readonly) NSString *paymentNetwork
To
@property(nonatomic, copy, readonly) NSString *paymentNetwork

Declaration
From
@property(nonatomic, readonly) NSString *transactionIdentifier
To
@property(nonatomic, copy, readonly) NSString *transactionIdentifier