In-App Purchase Key Configuration

Guide on how to set up iOS in-app purchase keys.

For RevenueCat to securely authenticate and validate a Subscription Offer request with Apple, you'll need to upload an in-app purchase key. In order to enable customer lookup via Order ID for iOS apps, you'll also need to provide an Issuer ID.

1. Generating an In-App Purchase Key

In-app purchase keys are generated in the Users and Access section of App Store Connect, and you can use the same in-app purchase key for all of your offers.

13941394

Select Generate In-App Purchase Key, you'll be prompted to enter a name for the key.

Once your key is generated, it will appear in Active Keys and you get one shot to download it.

Select Download API Key and store the file in a safe place, you'll need to upload this to RevenueCat in the next step.

911911

2. Uploading the In-App Purchase Key to RevenueCat

Once everything is set up in App Store Connect, you need to upload the In-App Purchase Key from the previous step to RevenueCat. RevenueCat will handle all the server-side authentication and validation of the Subscription Offers.

In the RevenueCat dashboard, select your iOS app from the Apps tab in your project settings.

Within your app settings, under the tab In-app purchase key configuration, you'll see an area to upload your In-App Purchase Key .p8 file that you downloaded from App Store Connect.

933933

3. Providing the Issuer ID to RevenueCat

Once you uploaded the in-app purchase .p8 file, you'll see an area to input 'Issuer ID'.

You can find this Issuer ID in App Store Connect, under Keys > App Store Connect API. You'll need to request access to the App Store Connect API (the Issuer ID will not show otherwise). Copy the Issuer ID, which is now shown at the top of the page, and paste into the RevenueCat 'Issuer ID' field.

27422742 893893

Remember to select 'Save changes'.