Join Ron Buencamino for an in-depth discussion in this video Understanding the payment queue, part of Implementing In-App Purchases in iOS 11 with StoreKit.
- [Instructor] When working with the payment queue,…there are a few truths about it that should be understood.…First, let StoreKit handle as much…of the transaction as possible.…The framework was designed to be your interface…with the App Store and it does a lot…of the heavy lifting for you.…Don't try to duplicate functionality…found within StoreKit.…Problems with billing will be handled by StoreKit,…so there's no need for you to try to recreate…this functionality.…All billing issues are handled between Apple…and the end user directly.…
Use the payment queue as a source of truth…for the payment process from product selection to payment.…If you ever have a question about a transaction,…use the product state to answer…preliminary questions you may have,…but then also use the receipt for verification.…With SKPaymentQueue you want to rely on the queue…to know about transactions that are in progress.…And it's also going to provide you information…about updates with payments.…The payment queue will also inform you…about hosted downloads.…
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