IAP on Apple devices

Enabling in-app purchases

To enable in-app purchases for Apple, fill in the required fields in the Settings tab.

Private key

The private key must be generated in App Store Connect.

1

Go to App Store Connect → Users and Access → Integrations → In-App Purchase.

2

Create a new key

Click the + symbol to create a new key.

3

Download key file

Download the key file and upload it in the Settings tab.

If you’re part of an Apple Enterprise developer account, a specific permission level is required to create this key. If you don’t have access, contact your company administrator.

Key ID

Copy the Key ID generated in the previous step and paste it into the Key ID field in the Settings tab.

App Apple ID

The App Apple ID must also be generated in App Store Connect.

1

Go to App Store Connect → Apps → Distribution → General → App Information → General Information.

2

Copy the Apple ID

Copy the Apple ID and paste it into the Settings tab.

3

Confirm

Once all fields are filled in, click Validate to confirm that everything is connected correctly.

Handling billing notification events

Because in-app purchases are completed through Apple’s interface, your app needs a way to detect when a user performs actions such as subscribing to or canceling a plan. Apple StoreKit sends server-side billing notifications whenever these events occur. This step ensures your app’s backend is correctly connected to Apple’s billing system.

Click Connect billing notification events. This automatically registers the correct endpoint URL for your app with Apple StoreKit.

It can take up to five minutes for Apple to update and recognize the new endpoint.

If you encounter an error, confirm that your API key has admin access. See this article for instructions.

Testing setup

1

Send test notification

Click Send test notification. Make sure at least five minutes have passed since connecting the billing notification events.

2

Confirm

Check that the notification has been successfully received.

If an error occurs, check App Store Connect → Apps → App Information → App Store Server Notifications.

Last updated

Was this helpful?