In this video I am going to explain in detail how to implement in-app purchases for your Android app using the react-native-iap module. I am going to show you how to go from no code at all, to fully working purchases with backend receipt validation and also how to set up test users to purchase the subscription.
Source code:
https://github.com/EuanMorgan/AndroidRNIAPTutorial
TIMESTAMPS
00:00 Intro
00:45 Initial play store setup
06:07 Initial React Native code
09:03 Basic RNIAP code
13:00 Uploading a signed build of the app with billing permissions
21:38 Configure purchases on google play store
23:45 Accessing IAPs in the app
27:18 Setting up testers
28:25 Continuing IAP code
32:08 Installing expo updates (OPTIONAL)
41:26 Submitting new build (OPTIONAL)
44:08 Testing expo-updates (OPTIONAL)
47:43 Adding license testers
48:56 Adding post-purchase code
52:52 Checking purchase history
01:00:00 Backend receipt validation (Firebase)
React-native-iap
https://github.com/dooboolab/react-native-iap
Docs for generating signed APK
https://reactnative.dev/docs/signed-apk-android
Expo updates install
https://docs.expo.io/bare/installing-updates/
https://docs.expo.io/configuring-ota-updates
React native unimodules
https://docs.expo.io/bare/installing-unimodules/
Testing purchases
https://developer.android.com/google/play/billing/test#billing-testing-test
https://support.google.com/googleplay/android-developer/answer/6062777
Android publisher endpoint
https://developers.google.com/android-publisher/api-ref/rest/v3/purchases.products/get
Firebase locations
https://firebase.google.com/docs/functions/locations