This course is available as part of the raywenderlich.com Professional subscription. To learn more click here
Pro

In-App Purchases

Mar 9 2021 · Video Course (3 hrs, 26 mins) · Intermediate

Updated for 2021! In-app purchase offers additional revenue streams for developers other than the initial purchase from the App Store. This can be great for unlocking functionality, providing additional content or for in-game currency.

This course covers the dance with App Store Connect, integration with StoreKit, restoration of previous purchases and receipt validation, by the end of the series you’ll have a great understanding of the concepts behind IAP.

4.3/5 3 Ratings

Version

  • Swift 5.3, iOS 14, Xcode 12

Getting Started

Introduction

4:21 Free

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.

1

Understand the various objects that compose the workflow for making in-app purchases.

2

Learn the differences between a consumable and a non-consumable, and then create one in App Store Connect.

3

Challenge yourself by adding more in-app purchases to App Store Connect.

4

Get started adding StoreKit by building the necessary classes you’ll use to talk to it.

5

Query StoreKit with a list of your in-app purchases and then display them to the end user.

6

Understand why things go wrong and where to troubleshoot when you don’t receive products from StoreKit.

7

Process the returned transactions from StoreKit in order to credit purchases to the end user.

8

Receive a quick review of all the steps and then push that buy button.

9

Integrate a StoreKit configuration file and create products in Xcode itself.

10

Conclusion

1:50

Review the previous part and receive an overview about the upcoming part.

11

Managing & Testing Purchases

Gain an understanding of the upcoming topics in this part.

12

Learn to locally persist a user’s purchases in a secure manner.

13

Recover all past user purchases with a tap of a button.

14

Now that you understand non-consumables, it’s time to implement some consumables.

15

Automate the testing of your purchase flow by way of the StoreKit Configuration file.

16

Gain an overview of receipt validation and the techniques available to you.

17

Decrypt an App Store receipt on your device using location receipt validation.

18

Decrypt an App Store receipt by using an external server.

19

Dive into the process of both understanding receipt JSON and decoding it.

20

Understand the process of responding to refund requests.

21

Conclusion

1:57

Review the concepts covered in this part and get a sneak peak at what comes next.

22

Incorporating Subscriptions

Learn about the subscription options available to you.

23

Gain an understanding of the existing subscription options and how they differ.

24

Create an auto-renewing subscription and learn about various features of it.

25

Learn what you need to do to implement your subscription in your project.

26

Learn how to test your auto-renewing subscription in Xcode and on a device.

27

Build a non-renewing subscription from scratch in Xcode.

28

Display subscription content once a user has purchased a subscription.

29

Conclusion

2:11

Congrats on finishing the course! Review everything you’ve learned, and find out where to go next.

30

Version history

macOS 10.14, Swift 4, Xcode 10

Mar 19 2019

iOS 14, Swift 5.3, Xcode 12 (Selected)

Mar 9 2021

iOS 9, Swift 2, Xcode 7

Nov 24 2015

Who is this for?

This course is for intermediate iOS developers who are comfortable with the Swift language, SwiftUI and know their way around Xcode.

Covered concepts

  • Defining your own in-app purchases locally & in App Store Connect
  • Preparing purchases in Xcode
  • Unit testing your purchases
  • Buying & restoring purchases
  • Setting up subscriptions
  • Creating trial periods
  • Validating receipts

Contributors

Comments