Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Apple Pay Essentials

You're reading from  Apple Pay Essentials

Product type Book
Published in Feb 2016
Publisher
ISBN-13 9781785886386
Pages 118 pages
Edition 1st Edition
Languages
Author (1):
Ernest Bruce Ernest Bruce
Profile icon Ernest Bruce

Auxiliary classes


This section describes some additional classes you must use to work with the Apple Pay API. The classes are:

  • PKContact: This is used to represent contact information (name, phone number, and e-mail) and addresses

  • CNPhoneNumber: This is used to represent a phone number

  • CNPostalAddress: This is used to represent addresses

The PKContact class

The PKContact class contains properties that represent the components of a billing or shipping address. The payment sheet provides instances of this class to its delegate when the user selects a shipping address (paymentAuthorizationViewController: didSelectShippingContact:completion:), and in the PKPayment object it provides when the user authorizes the payment request (paymentAuthorizationViewController:didAuthorizePayment:completion:).

Contact address components

These properties contain the information requested in the requiredBillingAddressFields or requiredShippingAddressFields properties of the PKPaymentRequest object. The value of...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}