Interested in incorporating in-app purchases into your app? This course teaches you how to do just that. Find out what’s involved and what you’ll learn.
A starter project will be used to display in-app purchases. Here, you’ll get an introduction to the project itself.
This episode walks you through setting up an app on the Apple Developer Center to enable in-app purchases.
There are four types of in-app purchases. This episode details what they are and how you can use them
There are various types of in-app purchases that you can integrate in your app. This episodes covers all the various types.
Challenge time! In your first challenge, you’ll finish adding all of the in-app purchases.
In this episode, you’ll learn how to create new sandbox users to test your purchases.
Once you have everything set up in iTunes Connect, your next task is to configure your project to use in-app purchases.
With everything configured in your app, your next task is to integrate StoreKit into the app.
With everything in place, you’ll now list all your products in a table view.
There are lots of things that can wrong with your in-app purchases. This episode will walk you through them.
You’ve gotten your products from Apple, but the fun is just beginning! Find out more in Part 2.
Buying and Restoring Products
Welcome to Part 2! In this video, discover the process of buying and restoring products via in-app purchases.
This episode gives you an overview of transactions and how they are used by in-app purchases.
Okay, you’ve processed the transaction – now what? Your next step is to notify the user.
Whew! The code is all finally in place. Your challenge is to try it out on an actual device.
When a user purchases content, you’ll want to keep track of it in a secure manner. This episode shows you how.
Restoring purchases is required according the HIG — this episode shows you everything you need to do.
This episode covers the basics of working with non-renewing subscriptions and how to use them.
Now that you have the basics added, you’ll learn how to provide the actual content. Let’s get started!
Auto-renewing subscriptions are similar to non-renewing subscriptions, but with some key differences. In this episode, learn what they are.
At this point, you have a good idea on how to make and restore purchases. In Part 3, you’ll learn how to validate receipts!
Why take the time to validate your receipts? This episode explains the importance of taking the time to do this.
This episode gives you an overview of the starter project being used to validate receipts. Take a look!
To get started validating receipts, the first thing you need to do is load it. Let’s do that now.
Okay, the receipt is loaded! Now, you’ll compare the receipt’s signature with Apple’s Root Certificate.
Validation: success! With the receipt validated, the next step is to read the contents. This episode teaches you how.
Once you have the receipt contents read into memory, the next step is to decrypt and read in the in-app purchase information.
Before you can finish a receipt, you need to verify the device and version. Learn how to do that in this episode.
At long last, it’s time to test the code that you just wrote by running it on a device. Let’s see how it works!
An alternative to local receipt validation is remote server validation, which is much easier and safer than local validation.
You can’t just add any in-app purchase; you need to follow the guidelines. This episode walks you through some of them.
Congrats on finishing the course! This episode reviews what you’ve learned and provides resources on where to go next.
Source link https://www.raywenderlich.com/1304447-in-app-purchases