All-in-One Solution for Indie Game Development · Empowering Indie Developers' Dreams
Documentation · Quick Start · QQ Group: 467608841 / 233840761
Payment Component - A Unity payment package that provides a unified interface for in-app purchases and subscriptions, supporting Google Play and Apple App Store.
- Unified interface for in-app purchases and subscriptions
- Support for Google Play and Apple App Store
- Easy to integrate and use
Choose one of the following methods:
-
Edit your Unity project's
Packages/manifest.jsonand add thescopedRegistriessection:{ "scopedRegistries": [ { "name": "GameFrameX", "url": "https://gameframex.upm.alianblank.uk", "scopes": [ "com.gameframex" ] } ], "dependencies": { "com.gameframex.unity.payment": "1.1.0" } }scopescontrols which packages are resolved through this registry. Only packages whose names start withcom.gameframexwill be fetched from it. -
Add to
manifest.jsondependencies:{ "com.gameframex.unity.payment": "https://github.com/gameframex/com.gameframex.unity.payment.git" } -
Use Package Manager in Unity with Git URL:
https://github.com/gameframex/com.gameframex.unity.payment.git -
Clone the repository into your Unity project's
Packagesdirectory. It will be loaded automatically.
Initialize the payment manager.
isDebug: Whether to use sandbox mode.isClientVerify: Whether to perform client-side purchase verification.
Check if the payment system is ready.
Set predefined product IDs for preloading.
inAppProductIds: List of in-app product IDs.subsProductIds: List of subscription product IDs.
Query purchase history.
productType: Product type, "inapp" or "subs".
Consume a purchase.
purchaseToken: The purchase token.
Initiate an in-app purchase.
productId: Product ID or SKU.orderId: Order ID.offerToken: Subscription offer token (subscriptions only).customData: Custom data.
Initiate a subscription purchase.
productId: Product ID or SKU.orderId: Order ID.offerToken: Subscription offer token.customData: Custom data.
Initiate a purchase.
productId: Product ID or SKU.productType: Product type, "inapp" or "subs".offerToken: Subscription offer token.orderId: Order ID.customData: Custom data.
| Platform | Supported |
|---|---|
| Android (Google Play) | Yes |
| iOS (App Store) | Yes |
- QQ Group: Join via QR Code
| Package | Description |
|---|---|
com.gameframex.unity |
1.1.1 |
See Releases for changelog.
See LICENSE.md for license information.