Loading...
Loading...
Implement the RevenueCat purchase and restore flow. Use when the user asks to buy a package, purchase a subscription, fetch offerings, build paywall purchase logic, handle purchase errors, detect user cancelled, or restore previous purchases on iOS, Android, Kotlin Multiplatform, Flutter, or React Native.
npx skill4agent add revenuecat/ai-toolkit revenuecat-purchase-flowpurchaserevenuecat-paywallrevenuecat-entitlements-gatepackage.jsonreact-native-purchasesreact-nativeplatforms/react-native.mdexpopubspec.yamlplatforms/flutter.mdbuild.gradle.ktskotlin { … }com.revenuecat.purchases:purchases-kmp*platforms/kmp.mdbuild.gradle(.kts)com.android.applicationplatforms/android.mdPackage.swift*.xcodeproj*.xcworkspacePodfileplatforms/ios.mdios/getOfferings()Packagepurchase(package)customerInfocustomerInfo.entitlements.active["<id>"]purchaseCancelledErrorPurchasesExceptionPurchasesErrorCode.PurchaseCancelledErrorPlatformExceptione.userCancelled === truerevenuecat-entitlements-gaterestorePurchases()platforms/ios.mdplatforms/android.mdplatforms/kmp.mdplatforms/flutter.mdplatforms/react-native.mdproductAlreadyPurchasedreceiptAlreadyInUse