Apple Pay
In this guide we will show you how to enable Apple Pay in just a few short steps. Since the steps require using Keychain, they must be performed on a Mac.
Setup a Merchant ID​
Apple Pay requires that you create a Merchant ID that will be associated with your app's bundle ID.
Generate a Merchant ID​
Register a Merchant ID via the Apple Provisioning Portal.
- Go to the Apple Developer dashboard and log in.
- Navigate to
Identifiers. - Click the blue
+sign button that is next to theIdentifierspage title. This will take you to the "Register a New Identifier" page. - Select
Merchant IDsand clickContinue. - Provide a description and ID. A typical convention for the ID is
merchant.com.<your_apps'_bundle_id>. - Click
Continueand if the information looks good, clickregister.
Link the Merchant ID to Your Bundle ID​
After registering a Merchant ID, you will then need to enable Apple Pay for your game’s App ID on the Apple Developer Dashboard.
- Go back to the
Identifierspage. - Find the bundle ID for your app, and click it to be taken to the "Edit your App ID Configuration" page.
- Check the checkbox that is next to the "Apple Pay Payment Processing" item under the "Capabilities" section.
- Click the now enabled "Edit" button to bring up a list of available Merchant IDs.
- Find the Merchant ID that was created earlier and check it.
Create a Payment Processing Certificate​
Next, a Payment Processing Certificate must be created.
Make a Certificate Signing Request (CSR)​
You will need to generate a Certificate Signing Request file with specific key pair settings using Keychain Access.
- On your Mac, open
Keychain Access. - In the menu bar go to
Keychain Access>Certificate Assistant>Request a Certificate from a Certificate Authority.... - Input your preferred email address.
- Select
Saved to Disk. - Check
Let me specify key pair information. - Press
Continue. - Choose a location to save the
.certSigningRequestfile, and give it a name. - Select Algorithm
ECC. - Select Key Size
256 Bits. - Press
Continue.
NOTE: You must select
ECCbefore the256 Bitsoption becomes available.
Generate the Certificate​
Now generate your certificate using the CSR you generated via Keychain Access earlier.
- On the Apple Developer dashboard navigate to Certificates.
- Click the blue
+sign next to the "Certificates" page title. This will take you to the "Create a New Certificate" page. - Select
Apple Pay Payment Processing Certificateand clickContinue. - Select the Merchant ID you created and click
Continue. - Under "Apple Pay Payment Processing Certificate" click
Create Certificate. - You may be taken to a page "Edit or Configure Merchant ID" - which asks "Will payments associated with this Merchant ID be processed exclusively in China?". Skillz does not operate in China. So answer
no, then clickContinue. - On the "Create a New Certificate" page upload the
.certSigningRequestfrom the first section. ClickContinue. - You will be taken to a confirmation page titled "Download Your Certificate". Make sure to press the
Downloadbutton and save your certificate file.
Download the resulting certificate file (.cer), which you will turn into a .p12 file in the next step.
Upload to the Developer Console​
You now need to upload a copy of your Payment Processing Certificate to the Skillz Developer Console.