You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 26, 2026. It is now read-only.
feat: add verifyPurchaseWithProvider for IAPKit verification (#3100)
- Add verifyPurchaseWithProvider function to verify purchases with
external providers (IAPKit)
- Add hasActiveSubscriptions helper function
- Update types: rename ReceiptValidation* to VerifyPurchase* for
consistency with OpenIAP
- Add verification method selection UI to example screens (PurchaseFlow,
SubscriptionFlow)
- Configure react-native-dotenv for IAPKIT_API_KEY environment variable
- Fix iOS: use stringValue instead of rawValue for Nitro enum
serialization
- Fix Android: convert Nitro enum to lowercase string for OpenIAP
compatibility
- Add enum mapping helper functions for Android (mapIapkitPurchaseState,
mapIapkitStore, mapPurchaseVerificationProvider)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
* Added provider-based purchase verification and a verifyPurchase API.
* Added hasActiveSubscriptions check.
* Example app: verification method selector (ignore/local/IAPKit) and
hook support.
* Exposed verification methods in the public IAP hook and types.
* **Documentation**
* Added example environment config and usage notes for IAPKit API key.
* **Chores**
* Updated build tooling for environment loading and bumped native
dependency versions.
<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
**Returns:**`Promise<boolean>` - Returns true if user has at least one active subscription
491
492
493
+
## verifyPurchaseWithProvider()
494
+
495
+
Verifies purchases using external verification services like IAPKit. This provides additional validation and security beyond local device verification.
0 commit comments