ApplePay integration instructions¶
Integrations¶
Apple Pay payments from Flit are available both for web and mobile.
Apple Pay on web can be integrated with several options:
- with redirect to Flitt payment page
- with Apple Pay button embedded into your website
- directly with Apple Pay API.
Apple Pay in mobile application can be integrated with Flitt SDK depending on the programming language or framework:
Steps for mobile¶
Create payment¶
To start accept payments in your mobile application, first you need to create payment in Flitt.
This is usually done on mobile application backend.
Before you start integration of Apple Pay on mobile, you will need to Register Apple Merchant ID and Create Apple Pay certificates.
Follow instructions bellow.
Register Apple Merchant ID¶
Register Apple Merchant ID following the instruction register merchant ID at Apple Developer site.
Fill out the form with a description and identifier. Your description is for your own needs and may be changed in the future (we recommend using the name of your mobile application). The identifier must be unique (in all Apple applications, not just yours) and cannot be changed later (although you can always create another). We recommend using merchant.flitt.com.{{Your_app_name}}. Keep this value for future reference when developing the application.
Detailed instruction:
-
Go to the Dashboard of your account in Apple Developer https://developer.apple.com/account/#
-
Open menu Identifiers
- click
Identifiers +
to create Merchant ID: https://developer.apple.com/account/resources/identifiers/add/bundleId
- in Register a new identifier choose to register
Merchant IDs
- Fill out Description and Identifier (merchant.flitt.com.{{your_app_bundle_id}}.):
Create new Apple Pay certificates¶
You need to add the certificates to your application to encrypt payment data. To do this, follow 3 steps:
-
Use Keychain Access on Mac to generate Certificate Signing Request files.
On other platforms you can use openssl commands:
Apple Merchant Identity Certificate:
openssl genrsa -out merchant.key 2048 openssl req -new -key merchant.key -out merchant.csr
Apple Processing Certificate:
openssl ecparam -out processing.key -name prime256v1 -genkey openssl req -new -sha256 -key processing.key -nodes -out processing.csr
-
Use these CSR files to generate certificates
section Apple Pay Payment Processing Certificate:
section Apple Pay Merchant Identity Certificate:
-
Download and send obtained certificates to Flitt support.