Chapter 11. Implementing In-App Purchases

In-App Purchase is an optional feature that developers can use to embed a store directly within an app. Sometimes, you may want to extend some features in your current game to keep your consumers interested in playing. Here's your chance, and possibly, more revenue in your pocket!

This chapter is only concerned with In-App Purchases in the Apple iTunes Store for the iOS platform. Android developers who want to implement In-App Purchases in their apps can refer to for reference. The set up for In-App Purchase is done in a similar fashion for iOS and Android. There are, however, some differences that need to be set up in your build.settings file and code.

We'll cover the following in this chapter:

Ready, set, go!

The purpose of implementing In-App Purchase is to add an in-app payment functionality to collect payment for enhanced functionality or additional content usable in your game. The following are options of incorporating this feature:

These are some examples that can be implemented with In-App Purchases.

In-App Purchases allow users to purchase additional content within an application. The App Store manages transaction information only. Developers cannot use the App Store to deliver content. So, either you bundle content with your app when you ship it (it will be unlocked on purchase), or you have to work out your own system to download the data, if you wish to deliver content.

There are several In-App Purchase types that you can apply in your apps.