Offer users additional content and services through purchases made within your app.
In-App Purchase allows you to offer users the opportunity to purchase in-app content and features. Customers can make the purchases within your app, or directly from the App Store. For information about promoting your products in the App Store, see Promoting Your In-App Purchases.
The StoreKit framework connects to the App Store on your app’s behalf to prompt for and securely process payments. The framework then notifies your app, which delivers the purchased products. To validate purchases, you can verify receipts on your server with the App Store or on the device. For auto-renewable subscriptions, the App Store can also notify your server of key subscription events.
Configure In-App Purchases in App Store Connect
To use In-App Purchase, you must first configure the products in App Store Connect. As you develop your app, you can add or remove products and refine or reconfigure existing products. For more information, see Workflow for configuring in-app purchases.
You can also offer apps and in-app purchases that run on multiple platforms as a single purchase. For more information about universal purchase, see App Store Connect Help.
Understand Product Types
There are four In-App Purchase types you can offer:
Consumables are a type that are depleted after one use. Customers can purchase them multiple times.
Non-consumables are a type that customers purchase once. They don't expire.
Auto-renewable subscriptions to services or content are a type that customers purchase once and that renew automatically on a recurring basis until customers decide to cancel.
Non-renewing subscriptions to services or content provide access over a limited duration and don't renew automatically. Customers can purchase them again.
You can sync and restore non-consumables and auto-renewable subscriptions across devices using StoreKit. When a user purchases an auto-renewable or non-renewing subscription, your app is responsible for making it available across all the user's devices, and for enabling users to restore past purchases.