Book Image

Apple Pay Essentials

By : Ernest Bruce
Book Image

Apple Pay Essentials

By: Ernest Bruce

Overview of this book

Apple Pay, one of the most talked about offerings of the latest iOS 9 release, is a digital wallet and electronic payment system developed by Apple Inc. Paying in stores or within apps has never been easier or safer. Gone are the days of searching for your wallet, and the wasted moments finding the right card! Now you can use your credit cards and rewards cards with just a touch. It allows payment to merchants, using Near field Communication (NFC), and within iOS apps. Implementing Apple Pay within apps for payment is a bit tricky, but our book solves this problem for you. Whether you are a brand new iOS app developer or a seasoned expert, this book arms you with necessary skills to successfully implement Apple Pay in your online-payment workflow. Whether you are a brand new iOS app developer or a seasoned expert, this book arms you with the necessary skills to successfully implement Apple Pay. We start off by teaching you how to obtain the certificates necessary to encrypt customers’ payment information. We will use Xcode and Objective C for the interface and Node.js for server side code. You will then learn how to determine whether the customer can use Apple Pay, and how to create payment requests. You will come to grips with designing a payment-processor program to interact with the payment gateway. Finally, we take a look at a business-focused view of Apple Pay protocols and classes. By the end of this book, you will be able to build a fully functional Apple Pay-integrated iOS app
Table of Contents (13 chapters)

Displaying the product card


The Apple Pay user experience starts with the appearance of the Apple Pay button. When your customer sees this button, they know that the product pictured on their device's screen can be at their doorstep with as few as two taps. There really is no step 3.

The product card is a screen that displays product information, such as the product's name, description, and price, and the Apple Pay button when Apple Pay is available on the user's device. When Apple Pay is not available (either because the customer's device does not support it or because the customer has not set up Apple Pay on that device), your app should not display the Apple Pay button. Instead, it should display either an Add to Cart button or a regular Buy button, and process the payment using traditional means.

The following sections describe how to design a product-card screen and how to lay out an Apple Pay button at runtime when Apple Pay is available.

Presenting product information

The product-card...