In-App Purchases
source link: https://www.raywenderlich.com/18770210-in-app-purchases
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
This course is available as part of the raywenderlich.com Professional subscription. To learn more click here
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.
Version
- Swift 5.3, iOS 14, Xcode 12
Getting Started
Introduction
4:21 FreeInterested 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.
Understand the various objects that compose the workflow for making in-app purchases.
Learn the differences between a consumable and a non-consumable, and then create one in App Store Connect.
Challenge yourself by adding more in-app purchases to App Store Connect.
Integrate StoreKit
8:44Get started adding StoreKit by building the necessary classes you’ll use to talk to it.
List Products
12:28Query StoreKit with a list of your in-app purchases and then display them to the end user.
Troubleshoot Errors
2:30Understand why things go wrong and where to troubleshoot when you don’t receive products from StoreKit.
Process Transactions
15:14Process the returned transactions from StoreKit in order to credit purchases to the end user.
Make a Purchase
10:47Receive a quick review of all the steps and then push that buy button.
Fetch Local Products
6:44Integrate a StoreKit configuration file and create products in Xcode itself.
Conclusion
1:50Review the previous part and receive an overview about the upcoming part.
Managing & Testing Purchases
Introduction
1:10Gain an understanding of the upcoming topics in this part.
Persist Purchases
4:43Learn to locally persist a user’s purchases in a secure manner.
Restore Purchases
3:33Recover all past user purchases with a tap of a button.
Purchase Consumables
15:36Now that you understand non-consumables, it’s time to implement some consumables.
Unit Test Purchases
9:41Automate the testing of your purchase flow by way of the StoreKit Configuration file.
Gain an overview of receipt validation and the techniques available to you.
Decrypt an App Store receipt on your device using location receipt validation.
Decrypt an App Store receipt by using an external server.
Decode Receipt JSON
8:03Dive into the process of both understanding receipt JSON and decoding it.
Refund a Purchase
1:42Understand the process of responding to refund requests.
Conclusion
1:57Review the concepts covered in this part and get a sneak peak at what comes next.
Incorporating Subscriptions
Introduction
1:16Learn about the subscription options available to you.
Gain an understanding of the existing subscription options and how they differ.
Create an auto-renewing subscription and learn about various features of it.
Learn what you need to do to implement your subscription in your project.
Learn how to test your auto-renewing subscription in Xcode and on a device.
Build a non-renewing subscription from scratch in Xcode.
Display subscription content once a user has purchased a subscription.
Conclusion
2:11Congrats on finishing the course! Review everything you’ve learned, and find out where to go next.
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
Brian is an instructor at Razeware who develops courses and screencasts on a wide variety of topics of iOS development. When...
InstructorGraphic Illustrator with a Bachelor’s Degree in Fine Arts. I am a perpetual perfection seeker with a big passion for History...
IllustratorChristine is Razeware's administrative assistant and video editor. For many years she fostered a strong dislike of green...
Video EditorComments
Add a rating for this content
Sign in to add a ratingAll videos. All books.
One low price.
A raywenderlich.com subscription is the best way to learn and master mobile development — plans start at just $19.99/month!
Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.
The largest and most up-to-date collection of courses and books on iOS, Swift, Android, Kotlin, Flutter, Dart, Server-Side Swift, Unity and more!
All videos. All books. One low price.
A raywenderlich.com subscription is the best way to learn and master mobile development — plans start at just $19.99/month!
Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalogue of 50+ books and 4,000+ videos.
- © 2021 Razeware LLC
- Made with ♥ from around the world
- 6000+ Tutorials and counting
raywenderlich.com and our partners use cookies to understand how you use our site and to serve you personalized content and ads. By continuing to use this site, you accept these cookies, our privacy policy and terms of service .
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK