Join Ron Buencamino for an in-depth discussion in this video Implementing SKPaymentQueue, part of Implementing In-App Purchases in iOS 11 with StoreKit.
- [Narrator] We last left off in a state…where we were able to select a product from our storefront…and submit an SK payment request.…We saw that StoreKit tries to confirm…the purchase with our user.…So we know that our payment request is going to go…through the payment queue without a problem.…However, given our app's current state,…if we were to submit our payment request,…we wouldn't be informed of changes that happen…to our payment transaction.…So now it's time for us to set up our transaction observer.…Let's go over here to IAPManager.swift,…and the first thing that I want to do…is conform to the SKPayment transaction observer protocol.…
Now that I've done that, I'm going to scroll down…to the bottom of our class, and I'm going to create…a bunch of stub functions that are a part of this protocol.…These are all of the functions that are a part…of the SKPayment transaction observer protocol,…and although you don't necessarily need to…handle all of the different callbacks,…it's good to know that they're there.…
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