1111#### Examples
1212
1313##### ✅ Correct
14+
1415``` swift
1516// iOS-specific functions
1617func presentCodeRedemptionSheetIOS ()
@@ -29,6 +30,7 @@ func finishTransaction()
2930```
3031
3132##### ❌ Incorrect
33+
3234``` swift
3335// Missing IOS suffix for iOS-specific
3436func presentCodeRedemptionSheet () // Should be presentCodeRedemptionSheetIOS()
@@ -44,8 +46,9 @@ func requestPurchaseIOS() // Should be requestPurchase() if cross-platform
4446- ** Use exact same function names as React Native OpenIAP**
4547
4648#### Standard API Names
49+
4750- ` initConnection() ` - Initialize IAP connection
48- - ` endConnection() ` - End IAP connection
51+ - ` endConnection() ` - End IAP connection
4952- ` fetchProducts() ` - Fetch products from store
5053- ` getProducts() ` - Get cached products
5154- ` getAvailablePurchases() ` - Get available/restored purchases
@@ -84,7 +87,7 @@ func requestPurchaseIOS() // Should be requestPurchase() if cross-platform
8487### Specific Cases
8588
8689- ** iOS** : ` Ios ` when at beginning/middle, ` IOS ` when as suffix
87- - ** IAP** : ` Iap ` when at beginning/middle, ` IAP ` when as suffix
90+ - ** IAP** : ` Iap ` when at beginning/middle, ` IAP ` when as suffix
8891- ** API** : ` Api ` when at beginning/middle, ` API ` when as suffix
8992- ** URL** : ` Url ` when at beginning/middle, ` URL ` when as suffix
9093
@@ -99,6 +102,7 @@ func requestPurchaseIOS() // Should be requestPurchase() if cross-platform
99102### Directory Structure
100103
101104- ** Sources/Models/** : OpenIAP official types that match [ openiap.dev/docs/types] ( https://www.openiap.dev/docs/types )
105+
102106 - ` Product.swift ` - OpenIapProduct and related types
103107 - ` Purchase.swift ` - OpenIapPurchase and related types
104108 - ` ActiveSubscription.swift ` - ActiveSubscription type
@@ -107,6 +111,7 @@ func requestPurchaseIOS() // Should be requestPurchase() if cross-platform
107111 - etc.
108112
109113- ** Sources/Helpers/** : Internal helper classes (NOT in OpenIAP official types)
114+
110115 - ` ProductManager.swift ` - Thread-safe product caching
111116 - ` IapStatus.swift ` - UI status management for SwiftUI
112117
0 commit comments