For the complete documentation index, see llms.txt. This page is also available as Markdown.

Apple Pay

Set up Apple Pay in OnsideKit using a Merchant ID, an Apple-generated certificate, and your app's Apple Pay capability.

Apple Pay gives users a fast, secure way to pay with OnsideKit.

Enabling Apple Pay takes four steps:

  1. Create a Merchant ID in Apple Developer.

  2. Generate an Apple Pay Payment Processing Certificate for that Merchant ID.

  3. Send the certificate to Onside.

  4. Configure OnsideKit and your app with the same Merchant ID.

Step 1: Create a Merchant ID

The Merchant ID identifies your Apple Pay merchant configuration. You'll reuse this exact value in your app and in your Onside configuration.

  1. Sign in to your Apple Developer account.

  2. Open Certificates, Identifiers & Profiles → Identifiers.

  3. Click +, select Merchant IDs, and click Continue.

  4. Enter a unique Merchant ID, click Continue, review, and click Register.

Step 2: Generate the Apple Pay Payment Processing Certificate

Apple must issue an Apple Pay Payment Processing Certificate for your Merchant ID. This requires a Certificate Signing Request (CSR) that Onside provides — do not create your own CSR.

Request the CSR from Onside

Email merchant-support@onside.io and include:

  • your app name

  • your Merchant ID from step 1

  • your Onside account or publisher name

Keep the CSR file Onside sends you unchanged.

Generate the certificate in Apple Developer

  1. Sign in to your Apple Developer account.

  2. Open Certificates, Identifiers & Profiles → Identifiers.

  3. Select the Merchant ID you created.

  4. Open Apple Pay Payment Processing Certificate and start the generation flow.

  5. Upload the CSR file provided by Onside.

  6. Complete the process and download the generated certificate.

Apple Developer can show multiple Apple Pay options. For Onside, generate exactly Apple Pay Payment Processing Certificate.

Step 3: Send the certificate to Onside

Onside uses this certificate to decrypt Apple Pay tokens during transactions. Email the generated certificate file to merchant-support@onside.io and include:

  • the certificate file you downloaded from Apple

  • your app name

  • your Merchant ID

  • your Onside account or publisher name

Step 4: Configure your app

Once Onside has processed your certificate, configure the same Merchant ID in your app.

Set the merchant identifier in OnsideKit

Set Onside.applePayMerchantIdentifier to your Merchant ID — after Onside.initialize(), and before you present any purchase UI:

Enable the Apple Pay capability in Xcode

Adding the capability generates the merchant entitlement your app needs to present Apple Pay:

  1. Open your app target and go to Signing & Capabilities.

  2. Click + Capability and add Apple Pay.

  3. In the Apple Pay configuration, select the Merchant ID from step 1.

Apple Pay now appears as a payment option in the OnsideKit purchase flow. See Making a Purchase.

Last updated

Was this helpful?