Join Ron Buencamino for an in-depth discussion in this video The in-app purchase process, part of Implementing In-App Purchases in iOS 11 with StoreKit.
- [Instructor] When working with in-app purchases,…you'll typically go through the following flow.…First, you'll go into iTunes Connect…and define your product offering.…Then you will go and build your app's storefront,…and lastly, you'll handle the user interaction piece.…This typically involves what happens…after a user interacts with the product from your store.…This goes all the way from handling errors…in the purchasing process to unlocking features…and subscriptions.…To get a visual approach with how your app…interacts with StoreKit, first we'll see…that our app will use StoreKit to make our requests.…
StoreKit then sends those requests to AppStore,…which will then produce a response back.…StoreKit will then relay those responses to your app,…whose responsibility is the presentation of this…to your user.…Now optionally, your app can communicate…with your private server to update other components…as a result of the purchasing process.…This is where you update a character's in game bonus count…within a video game.…
First, get an overview of StoreKit and the types of purchases you can offer, including consumable and non-consumable products and non-renewing and auto-renewable subscriptions. Next, learn how to configure new products for sale with iTunes Connect and display a storefront right within your app. Ron then shows how to request and process payments, and deliver users' purchases to their iOS devices. Plus, learn about restoring purchased content—a smart strategy for keeping your app rating high—and requesting reviews from users using the new SKStoreReviewController API, which doesn't require leaving the app.
- What is StoreKit?
- Creating products in iTunes Connect
- Displaying products in your storefront
- Requesting payments
- Receipt validation
- Delivering products
- Restoring purchased content
- Asking for app reviews