|
| 1 | +--- |
| 2 | +title: Powered by OpenIAP |
| 3 | +sidebar_label: OpenIAP |
| 4 | +--- |
| 5 | + |
| 6 | +# Powered by OpenIAP |
| 7 | + |
| 8 | +<a href="https://openiap.dev"> |
| 9 | + <img src="https://raw.githubusercontent.com/hyodotdev/openiap/main/logo.png" alt="OpenIAP" height="60" /> |
| 10 | +</a> |
| 11 | + |
| 12 | +React Native IAP conforms to the **[OpenIAP specification](https://openiap.dev)** — an open, vendor-neutral interoperability standard for in-app purchases across all platforms and frameworks. |
| 13 | + |
| 14 | +## What is OpenIAP? |
| 15 | + |
| 16 | +OpenIAP is not just a library — it's a **shared specification layer** that ensures consistent, secure, and verifiable in-app purchase behavior everywhere. Instead of each framework reinventing its own types, error models, and verification flows, OpenIAP defines them once in a single GraphQL schema and generates type-safe bindings for every platform. |
| 17 | + |
| 18 | +## How It Works |
| 19 | + |
| 20 | +``` |
| 21 | +GraphQL Schema (Single Source of Truth) |
| 22 | + │ |
| 23 | + ▼ |
| 24 | + IR (Intermediate Representation) |
| 25 | + │ |
| 26 | + ├── Swift bindings → openiap-apple (StoreKit 2) |
| 27 | + ├── Kotlin bindings → openiap-google (Play Billing 8.x) |
| 28 | + ├── Dart bindings → flutter_inapp_purchase |
| 29 | + └── GDScript bindings → godot-iap |
| 30 | +``` |
| 31 | + |
| 32 | +## What OpenIAP Provides |
| 33 | + |
| 34 | +| Component | Description | |
| 35 | +|-----------|-------------| |
| 36 | +| **Shared Specification** | Common types, error codes, and purchase flows across all platforms | |
| 37 | +| **Generated Type-Safe Bindings** | Swift, Kotlin, Dart, and GDScript from a single GraphQL schema | |
| 38 | +| **Platform Implementations** | [openiap-apple](https://github.com/hyodotdev/openiap/tree/main/packages/apple) (StoreKit 2) and [openiap-google](https://github.com/hyodotdev/openiap/tree/main/packages/google) (Play Billing 8.x) | |
| 39 | +| **Verification Profiles** | Standardized receipt validation and purchase verification patterns | |
| 40 | +| **Conformance Tests** | Cross-platform test matrix ensuring behavioral consistency | |
| 41 | + |
| 42 | +## Libraries Built on OpenIAP |
| 43 | + |
| 44 | +| Library | Platform | |
| 45 | +|---------|----------| |
| 46 | +| **[react-native-iap](https://github.com/hyochan/react-native-iap)** | React Native | |
| 47 | +| [expo-iap](https://github.com/hyochan/expo-iap) | Expo | |
| 48 | +| [flutter_inapp_purchase](https://github.com/hyochan/flutter_inapp_purchase) | Flutter | |
| 49 | +| [kmp-iap](https://github.com/hyochan/kmp-iap) | Kotlin Multiplatform | |
| 50 | +| [godot-iap](https://github.com/hyochan/godot-iap) | Godot Engine | |
| 51 | + |
| 52 | +## Learn More |
| 53 | + |
| 54 | +- **[OpenIAP Website](https://openiap.dev)** — Full specification and documentation |
| 55 | +- **[OpenIAP GitHub](https://github.com/hyodotdev/openiap)** — Source code and monorepo |
| 56 | +- **[About OpenIAP](https://openiap.dev/docs/foundation/about)** — Project overview and vision |
| 57 | +- **[Governance](https://openiap.dev/docs/foundation/governance)** — Open governance model |
| 58 | +- **[Become a Sponsor](https://openiap.dev/docs/foundation/sponsorship)** — Support the standard |
0 commit comments