Join Ron Buencamino for an in-depth discussion in this video Unlock content in validated receipts, part of Implementing In-App Purchases in iOS 11 with StoreKit.
- [Narrator] In our last lesson,…we took the receipt data that we had on device,…and we formatted it,…and we sent it up to the App Store verification URL…so that we can have our receipt validated…and check its response.…Although we were able to validate the receipt,…that's not necessarily everything that we need to do…when it comes to receipt validation.…A wise thing to do next…is to pick apart the contents of the receipt,…and look for the purchases that were made.…
And then, you take those purchases…and unlock the different items as necessary.…So what we want to do with this lesson…is focus on parsing our receipt, and making sure…we can work with the data that we're expecting.…And I think the best way for us to be able to do that first,…is to take a look at what a receipt looks like…as it's printed out.…So what I'm going to do is come over to Receipt Validator.…I'm going to drop down over here,…and in line number 48, I'm going to go under it,…and I'm simply going to call print,…and I'm going to call in the object.…
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