This video has a lot of information, so make sure to check the timestamps. I wanted to make a video that shows all the different ways to use / integrate IAPs, not just adding them to the App Store. I know that can be a really tricky process! Like & Subscribe if you found this helpful ❤️
Package URL: https://github.com/RevenueCat/purchas...
In this step-by-step SwiftUI tutorial, you'll learn how to add in-app purchases to your iOS app using RevenueCat and StoreKit.
We'll build a simple SwiftUI app from scratch and walk through:
Setting up consumables and subscriptions on App Store Connect
Using .storekit for local testing in Xcode
Connecting your app & IAP's to RevenueCat
Verifying purchases and entitlements
TestFlight + sandbox testing
💡 What You’ll Learn:
✅ RevenueCat + SwiftUI setup
✅ StoreKit config and testing
✅ Consumables vs subscriptions
✅ How to display purchase status
✅ Testing with sandbox and TestFlight
Lot's of api's and keys in this one so the blur tool came out in full force 🙈
📁 Download the source files:
https://ndcswift.github.io/Swift-Proj...
📣 Like + Subscribe for more SwiftUI, Dev Tutorials, and indie dev tips.
⏱️Timestamps
00:00 - Intro & Why Revenue Cat
02:22 - Demo Project Setup
02:50 - Adding storeKit for local testing
03:30 - Creating Sample IAP's in StoreKit
05:21 - Adding StoreKit file to run
06:00 - Adding Revenue cat to our project
07:21 - Creating our IAP in App store Connect
08:18 - Creating Consumable IAP
09:54 - Creating a subscription
11:19 - Syncing our IAP's with Revenue Cat
11:54 - App-Specified Shared Secret
12:21 - IAP purchase Configuration Key
13:19 - AppStore connect API Key
14:17 - Creating Products in Revenue Cat
15:40 - Entitlements on Revenue Cat
16:42 - Offerings on Revenue Cat (required for sandbox)
17:45 - Handling IAP in SwiftUI
19:49 - Adding a purchase function
22:50 - Public API key
23:12 - Testing our IAP on simulator
24:27 - Checking Subscription Status and purchase subscription
27:09 - Testing our IAP subscription on simulator
27:45 - Adding build for TestFlight for sandbox
29:30 - Post testflight approval
30:00 - Creating sandbox account
30:59 - Signing into sandbox on a device
31:37 - Using sandbox for purchases on test device
32:16 - TestFlight testing an IAP
33:38 - Revenue Cat Sandbox Dashboard results
34:11 - Wrap up