Skip to main content

Apple In-App Purchases

Process purchases made inside your iOS app through the App Store. Once installed, this integration becomes available as a payment gateway for the Billing app.

Prerequisites

Prerequisites

Before setting up the Apple In-App Purchases integration, ensure you have:

Create an App Store Connect API key

DashX uses the App Store Server API to verify and track purchases, which authenticates with an API key.

  1. Sign in to App Store Connect
  2. Go to Users and Access > Integrations > App Store Connect API
  3. Create a new key with the In-App Purchase role
  4. Note the Issuer ID shown above the key list
  5. Note the Key ID of the key you created
  6. Download the .p8 private key file
warning

The .p8 private key can be downloaded only once. Store it securely — if you lose it, revoke the key and create a new one.

Find your Bundle ID

Your Bundle ID identifies the app the purchases belong to. It is shown in App Store Connect under your app's General > App Information, and in Xcode under the target's Signing & Capabilities tab. It usually looks like com.yourcompany.yourapp.

Connect to DashX

  1. Log in to your DashX workspace
  2. Navigate to Settings > Integrations
  3. Click [+] to add a new integration and select Apple In-App Purchases
  4. Choose the environments you want to enable it for
  5. Enter the configuration below and save

Configuration

FieldDescription
Bundle IDThe bundle identifier of your iOS app.
Issuer IDThe issuer ID from the App Store Connect API page.
Key IDThe ID of the App Store Connect API key.
Key SecretThe contents of the downloaded .p8 private key file.
tip

Sandbox purchases made with a sandbox Apple ID are reported separately from production purchases. Test against a development environment before enabling this in production.