Configure In-App Purchases
How does the in-app purchase feature work?
The in-app purchase feature allows collecting payments if your app does not have a payment gateway. If your app offers virtual goods, features or functionality, Apple mandates the use of in-app purchases.
Follow these steps to enable in-app purchases on your iOS app:
Step 1: Accept the Paid Apps Agreement in your Apple Developer account
From the homepage, go to the Business section in your App Store Connect account.
Click on the legal entity name. This will either be your name or the name of the company your developer account belongs to.
In the Agreement section, click on the “Paid App Agreement”. Click on View and Agree to terms.
Enter the two-factor authentication code, if it is generated at this step.
Read and accept the terms of the agreement.
Step 2: Configure in-app purchases in App Store Connect
This step is applicable only to consumable and non-consumable digital goods.
Navigate to App Store Connect > Apps > Select your app > Monetization.
Locate ‘In-App Purchases’ under Monetization.
Click "Create" and choose the appropriate In-App Purchase type.
Enter the ID provided by your Content Management System provider. This will ensure that the In-App Purchase is enabled only for the designated products.
Provide a clear and descriptive name for your app users to understand what they are purchasing.
Configure your price, localization and availability settings based on your pricing strategy and target markets.
This step is applicable only to auto-renewing or non-renewing subscriptions.
Navigate to: App Store Connect > Apps > Select your app > Monetization.
Locate ‘Subscriptions’ under Monetization.
Click ‘Create’ to create a group under the group section and give your group a name. This step is optional.
Assign a clear and descriptive name to your group (e.g., "Premium Content"). This helps organize related subscriptions.
Click "Create" in the "Subscriptions" section.
Enter the Product ID provided by your CMS provider. This will ensure that the In-App purchase is enabled only for the designated products.
Provide a clear and descriptive name for users to understand what they are purchasing.
Configure your price, locatization and availability settings based on your pricing strategy and target markets.
We currently support Non-Consumable In-App Purchases (IAP) exclusively for "Simple" product types in WooCommerce.
Step 3: Use App Store Server Notifications
The final step involves establishing a connection between our servers and Apple’s servers.
From within your App Store Connect account, navigate to Apps and select your app.
In the sidebar under General, click App information.
Scroll down to the App Store Server Notifications section.
In the Production Server URL section, click Set Up URL.
Paste the URL obtained in the “Production Server URL” field on the In-App Purchase screen. Click Save to complete.
Step 4: Establish link between your app and the Apple App Store
Navigate to Publish in your AppMySite account.
Click on the "+ Connect" button.
Click on the “In-app purchase” tab under the App Store connection.
Follow the steps below to get the required information:
Issuer ID
The Issuer ID is a unique identifier assigned to your Apple developer account. Select your app from the Homepage of your App Store Connect. Click on the Users and Access tab and then Integrations. Find the Issuer ID under the App Store Connect API section.
IAP Key ID
The IAP Key ID, along with the IAP Key File, helps authenticate all requests related to In-app purchases. From Users and Access, go to Integrations. Click on In-App Purchases from the side bar. Click the add button (+) to generate the In-App Purchase Key. Once you generate this key, you will be able to find it under the Active list. Copy and paste it in the IAP Key ID field.
IAP Key file
The IAP Key file acts like a virtual key unlocking all requests related to In-app purchases. Simply click on “Download In-App Purchase Key” against the key you just generated. You can only download an individual API key once. Upload the file in the IAP Key file field.
This process will set you up for collecting payments through In-App Purchases on your iOS app.
Last updated