Configuring Your Environment
A merchant ID identifies you to Apple Pay as being able to accept payments. A Payment Processing certificate that is associated with your merchant ID is used to encrypt payment information. Before your app can use Apple Pay, you need to register a merchant ID and create its Payment Processing certificate.
To register a Merchant ID
In Member Center, select Certificates, Identifiers & Profiles.
Under Identifiers, select Merchant IDs.
Click the Add button (+) in the upper-right corner.
Enter a description and identifier, and click Continue.
Review the settings, and click Register.
Click Done.
To create a Payment Processing certificate
In Member Center, select Certificates, Identifiers & Profiles.
Under Identifiers, select Merchant IDs.
Select the merchant ID from the list, and click Edit.
In the Payment Processing Certificates section, click Create Certificate. Follow the instructions to obtain or generate your certificate signing request (CSR), and click Continue.
Click Choose File, select your CSR, and click Generate.
Download the certificate by clicking Download, and click Done.
If you see a warning in Keychain Access that the certificate was signed by an unknown authority or that it has an invalid issuer, make sure you have the WWDR intermediate certificate - G2 and the Apple Root CA - G2 installed in your keychain. You can download them from apple.com/certificateauthority.
To enable Apple Pay for your app in Xcode, open the Capabilities pane. Select the switch in the Apple Pay row, and then select the merchant IDs you want the app to use.
Copyright © 2018 Apple Inc. All rights reserved. Terms of Use | Privacy Policy | Updated: 2017-03-16