Reader small image

You're reading from  Apple Pay Essentials

Product typeBook
Published inFeb 2016
Reading LevelBeginner
Publisher
ISBN-139781785886386
Edition1st Edition
Languages
Right arrow
Author (1)
Ernest Bruce
Ernest Bruce
author image
Ernest Bruce

Ernest Bruce is an accomplished technical writer and software engineer. He has worked for 13 years at Apple, Inc., where he held the position of Senior Technical Writer writing developer documentation. At Apple, Ernest specialized in writing documentation for the Xcode toolset, focusing on the Xcode user guide, and Xcode overview, as well as unit testing documentation and sample code. He also worked extensively on API documentation for the OS X and iOS platforms. Ernest helped design and develop the Xcode help articles that aid developers in getting around the user interface of the Xcode app. Before his years at Apple, Ernest worked as a programmer for Ping, Inc., where he helped manage the manufacturing processes using APL (A Programming Language). Ernest also has extensive experience in customer service, which has been instrumental to him developing content that readers find clear and easy to read, and that makes complex concepts more approachable. Ernest is the head of Nerd Brawn, LLC, a software development company that focuses on developing platforms that help people learn about their environment and each other in innovative ways. The company is also working on new techniques to present content on desktop computers, tablets, and mobile phones.
Read more about Ernest Bruce

Right arrow

Enabling Apple Pay in your app


For your app to be able to use Apple Pay, you must have an Apple merchant identifier and merchant certificate. Apple uses the certificate to encrypt payment information in the payment token. Your payment gateway (Stripe, Worldpay, and so on) uses the certificate to decrypt information in the payment token.

Creating your app's Apple Pay merchant identifier

You must have access to your team's Member Center portal and your payment gateway's certificate management facilities.

Create your merchant identifier in your team's Member Center page through the following steps:

  1. In Member Center, click on Certificates, Identifiers & Profiles.

  2. Under iOS Apps, click on Identifiers.

  3. Under Identifiers, click on Merchant IDs.

  4. Click on Continue (if this is your first merchant identifier) or on the plus sign (+) button in the upper-right corner of the page.

  5. Enter a description for the merchant identifier in the Description field, for example MerchantApp merchant identifier.

  6. Enter the identifier string in the ID field, for example merchant.com.company.merchantapp.

  7. Click on Continue and then click on Register.

  8. Click on Done.

Request an Apple Pay certificate from your payment gateway by performing the following:

  1. In your payment gateway's certificate management page, create an Apple Pay certificate.

  2. Download the Certificate Signing Request (CSR) file to your Mac.

Now, follow these steps to create your app merchant certificate in Member Center:

  1. In the Certificates, Identifiers & Profiles page, under iOS Apps, under Certificates, click on All.

  2. Then, select Apple Pay Certificate and click on Continue.

  3. Under Which Merchant ID would you like to use?, select the appropriate merchant identifier and click on Continue.

  4. Under Generate your certificate, click on Choose File.

  5. Choose the CSR file you obtained from your payment gateway.

  6. Next, click on Generate and then click on Download to download your app merchant certificate to your Mac.

Upload your app merchant certificate to your payment gateway via the following steps:

  1. In your payment gateway's certificate management page, upload the merchant certificate you downloaded from the Member Center portal.

  2. Confirm that your merchant certificate is listed in your payment gateway account.

Installing your app's Apple Pay merchant certificate on your Mac

Double-click on the merchant certificate you downloaded earlier from Member Center. Keychain Access will then open and install the certificate along with your other certificates.

Enabling Apple Pay in your app's Xcode project

To provide your app with access to Apple Pay, you need to turn on the Apple Pay capability in the Xcode project. Perform the following:

  1. First, open your project in Xcode.

  2. Select the target that builds the app to open the target editor.

  3. Then, click on Capabilities.

  4. Find the Apple Pay capability and toggle the corresponding switch to its on position.

  5. In the dialog that appears, select the appropriate development team, and click on Choose.

Previous PageNext Page
You have been reading a chapter from
Apple Pay Essentials
Published in: Feb 2016Publisher: ISBN-13: 9781785886386
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.
undefined
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

Author (1)

author image
Ernest Bruce

Ernest Bruce is an accomplished technical writer and software engineer. He has worked for 13 years at Apple, Inc., where he held the position of Senior Technical Writer writing developer documentation. At Apple, Ernest specialized in writing documentation for the Xcode toolset, focusing on the Xcode user guide, and Xcode overview, as well as unit testing documentation and sample code. He also worked extensively on API documentation for the OS X and iOS platforms. Ernest helped design and develop the Xcode help articles that aid developers in getting around the user interface of the Xcode app. Before his years at Apple, Ernest worked as a programmer for Ping, Inc., where he helped manage the manufacturing processes using APL (A Programming Language). Ernest also has extensive experience in customer service, which has been instrumental to him developing content that readers find clear and easy to read, and that makes complex concepts more approachable. Ernest is the head of Nerd Brawn, LLC, a software development company that focuses on developing platforms that help people learn about their environment and each other in innovative ways. The company is also working on new techniques to present content on desktop computers, tablets, and mobile phones.
Read more about Ernest Bruce