Create an In-App Purchase
Before reading on, make sure you know how to create an App ID and Distribution Provisioning Profile from the iOS Provisioning Portal. Also, make sure you know how to manage new applications in iTunes Connect. If you're unsure, refer to Chapter 10, Optimizing, Testing, and Shipping Your Games, for more information. Here are the things that need to be ready in your app before creating an In-App Purchase:
- A Distribution Certificate already made for your app.
- An explicit App ID for your application, for example,
com.companyname.appname
. Do not substitute a wildcard character (asterisk: "*"). The Bundle ID needs to be completely unique in order to use the In-App Purchase function. - An ad hoc Distribution Provisioning Profile (used to test In-App Purchases). When you're ready to submit an app with In-App Purchase, an App Store Distribution Provisioning Profile is required.
- Your application information must be set up in iTunes Connect. You do not need to get your binary uploaded to create or test In-App Purchases.
- Make sure that you have an iOS Paid Applications contract in effect with Apple. If you don't, you'll need to request it in Contracts, Tax, and Banking located on the iTunes Connect home page. You will need to provide your banking and tax information in order to offer In-App Purchases in your apps.