In-App Purchase
An In-app purchase (or IAP) allows developers to charge users for specific functionality or content while using an app. Implementing IAPs is particularly compelling for several reasons:
-
It’s an extra way to earn money, in addition to simply selling the app for a fee upfront. Some users are willing to spend a lot more on extra content or features.
-
An app can be offered for free, which makes it a no-brainer download for most people. Free apps will typically get many more downloads than paid apps. If users enjoy the app, then they can purchase more content or functionality later.
-
You can display advertisements to the user in a free app with an option to remove them by purchasing an IAP.
-
Following the initial release of an app, new paid content can be added to the same app instead of having to develop a brand new app to earn more money.
Checking Your Agreements
Before you can add IAPs to an app in iTunes Connect, you must do two things:
1. Make sure you have accepted the latest Apple Development Program License Agreement on developer.apple.com.
2. Make sure you have accepted the latest Paid Applications agreement in the Agreements, Tax, and Billing section in App Store Connect.
If you have not done this, usually iTunes Connect will give you a warning like the following:
If you see something like the above, follow the steps to accept the appropriate agreements.
It’s also good to double check the Agreements, Tax, and Banking section in iTunes Connect:
If you see a section entitled Request Contracts containing a row for Paid Applications, then click the Request button. Fill out all the necessary information and submit it. It may take some time for your request to be approved. Sit tight!
Otherwise, if you see Paid Applications listed under Contracts In Effect, then it looks like you’ve already done this step! Nice job!
Note: Apple can take days to approve these IAP-related agreements after you submit them. During this time, you won’t be able to display IAP products in your apps even if you implement everything correctly in code. This is a common source of frustration for folks implementing In-App Purchases for the first time. Hang in there!
Creating In-App Purchase Products
When offering IAPs you must first add an entry for each individual purchase within App Store Connect. If you’ve ever listed an app for sale in the store, it’s a similar process and includes things like choosing a pricing tier for the purchase. When the user makes a purchase, the App Store handles the complex process of charging the user and replies with data about such operations.
There are a whole bunch of different types of IAP you can add:
1. Consumable: These can be bought more than once and can be used up. These are a good fit for extra lives, in-game currency, temporary power-ups, and the like.
2. Non-Consumable: Something that you buy once, and expect to have permanently such as extra levels and unlockable content.
You can only offer In-App Purchases for digital items, and not for physical goods or services. For more information about all of this, check out Apple’s full documentation on Creating In-App Purchase Products.
Now, while viewing your app’s entry in App Store Connect, click on the In-App Purchases. To add a new IAP product, click the + to the right of In-App Purchases.
- Go to the link for In-App Purchase Setup for iOS, https://docs.webtonative.com/plugin/in-app-purchase-ios-setup (opens in a new tab).
- Go to the link for In-App Purchase Integration for iOS, https://docs.webtonative.com/javascript-apis/in-app-purchase-ios-integration (opens in a new tab).