Apple Pay in your native app
This document is intented for Apple Pay in your iOS native application. For Apple Pay in your web application please see the web guide.
Setup Apple's Developer Account
Create a developer account with Apple Developer Program.
Ensure your app is compliant with Apple's guidelines.
Enabe Apple Pay
1. Accept Apple Pay in App
Obtain an Apple Merchant ID by registering for a new identifier in the Apple Developer portal.
Complete the form by providing a description and an identifier. The description is for your reference and can be updated later. It is recommended to use your app's name as the identifier for example merchant.{{YOUR_APP_NAME}})
.
2. Create an Apple Pay Certificate
To enable your app to encrypt payment data using Apple Pay, follow these steps:
Navigate to the Merchant settings in the PE Partner Portal.
Scroll to the Apple Pay section and follow the provided instructions.
Enter your Apple Merchant ID and download the Certificate Signing Request (CSR) file.
Use the CSR file to obtain a secure certificate from Apple, enabling the use of Apple Pay.
3. Upload Apple Pay Processing Certificate
Navigate to the Apple Merchant ID that you registered earlier on the Apple Developer website. Upload the CSR file to generate an Apple Pay Processing Certificate. Once the certificate is active, download it. The certificate file should be named apple_pay.cer
.
Upload the cer
file back to PayEngine as described in the Apple Pay settings.
4. Integrate with Xcode
To enable Apple Pay in your app:
Open your project in Xcode.
Go to the Signing & Capabilities tab within your project settings.
Add the Apple Pay capability.
If prompted, log in to your Apple Developer account.
Select the Merchant ID you previously created.
Your app is now ready to accept Apple Pay.
API Integration (iOS SDK)
Handling Multiple Merchant IDs (MIDs)
Manage various merchant IDs in your app by following Apple's guidelines and ensure your app can switch between MIDs based on the transaction context.
Last updated