t1k:unity:tof:iap
| Field | Value |
|---|---|
| Module | tof |
| Version | 2.2.2 |
| Effort | medium |
| Tools | — |
Keywords: iap, in-app-purchase, receipt-validation, scriptable-object, store
How to invoke
Section titled “How to invoke”/t1k:unity:tof:iapPurpose
Section titled “Purpose”A feature package for In-App Purchase functionality in TheOne framework, providing a standardized interface for managing in-app purchases in Unity mobile games.
Public API
Section titled “Public API”class
FeatureIAPService(FeatureIAPService.cs)FeatureIAPVContainer(FeatureIAPVContainer.cs)IAPPackageConfig(IAPPackageConfig.cs)IapPackData(IapPacksLocalData.cs)IapPackDataService(IapPackDataService.cs)IapPackSuggestionService(IapPackSuggestionService.cs)IAPValidator(IAPValidator.cs)PurchaseIdAttribute(PurchaseIdAttribute.cs)PurchaseIdDropdownDrawer(PurchaseIdDropdownDrawer.cs)ShopPackReplaceBlueprint(ShopPackReplaceBlueprint.cs)ShopPackReplaceRecord(ShopPackReplaceBlueprint.cs)
Signals / Events
Section titled “Signals / Events”None detected.
Config / ScriptableObjects
Section titled “Config / ScriptableObjects”ShopPackReplaceBlueprint
Integration Steps
Section titled “Integration Steps”- Reference package
TheOneFeaturein your project. - Register the IAP services via VContainer (see Architecture).
- Configure any ScriptableObjects listed in Config section.
- Subscribe to signals listed in Signals / Events to react to state changes.
Architecture
Section titled “Architecture”Detected public types (11): class
FeatureIAPService(FeatureIAPService.cs)FeatureIAPVContainer(FeatureIAPVContainer.cs)IAPPackageConfig(IAPPackageConfig.cs)IapPackData(IapPacksLocalData.cs)IapPackDataService(IapPackDataService.cs)IapPackSuggestionService(IapPackSuggestionService.cs)IAPValidator(IAPValidator.cs)PurchaseIdAttribute(PurchaseIdAttribute.cs)PurchaseIdDropdownDrawer(PurchaseIdDropdownDrawer.cs)ShopPackReplaceBlueprint(ShopPackReplaceBlueprint.cs)ShopPackReplaceRecord(ShopPackReplaceBlueprint.cs)
Detected DI registrations:
FeatureIAPServiceIapPackDataServiceIapPackSuggestionServicePurchaseIdAttribute
Dependencies
Section titled “Dependencies”Run with FEATURE_MATRIX/DEPENDENCY_GRAPH integration to fill.
Gotchas
Section titled “Gotchas”- Store validation is async;
PurchaseIdAttributemust be applied to string fields only. - ShopPackReplaceBlueprint uses record types; edits via editor may drop null fields.
References
Section titled “References”- Source:
UnityTheOneFeatureProject/Packages/TheOneFeature/Core/Features/IAP/ - Doc:
UnityTheOneFeatureProject/Packages/TheOneFeature/Core/Features/IAP/README.md - Doc:
UnityTheOneFeatureProject/Packages/TheOneFeature/Core/Features/IAP/CHANGELOG.md - Namespace:
TheOne.Features.IAP.Core,TheOne.Features.IAP.Core.DI,TheOne.Features.IAP.Core.Models.Blueprints,TheOne.Features.IAP.Core.Models,TheOne.Features.IAP.Core.Services