Monetize Your iOS App with Confidence
IAPHUB provides a powerful yet simple SDK for implementing in-app purchases in your iOS applications. With full support for StoreKit 1 & 2, our SDK ensures you can handle in-app purchases seamlessly.
Stop wrestling with complex StoreKit implementations and receipt validation. Our SDK abstracts away the technical complexities.
Complete StoreKit Support
Full support for both StoreKit 1 and StoreKit 2, ensuring compatibility with all iOS versions and latest Apple features.
Swift & Objective-C Support
Full compatibility with both Swift and Objective-C. Implement in-app purchases with just a few lines of code.
Secure Receipt Validation
Automatic and secure server-side validation of Apple receipts to prevent fraud and errors.
Cross-Platform Ready
Same powerful SDK available for Android. Manage all your apps from a single dashboard with consistent APIs across platforms.
Real-time Analytics
Track your in-app purchase performance with detailed analytics and insights in our comprehensive dashboard.
Webhooks & API
Integrate with your backend using our REST API and webhooks for automated purchase verification and user management.
Quick Installation
Install the IAPHUB iOS SDK via CocoaPods or Swift Package Manager:
Start Coding in Minutes
Implement in-app purchases in your iOS app with just a few simple steps. Works with both Swift and Objective-C.
1. Initialize the SDK
Start by initializing IAPHUB with your app credentials in your AppDelegate or main app file.
try await Iaphub.start(
appId: "5e4890f6c61fc971cf46db4d",
apiKey: "SDp7aY220RtzZrsvRpp4BGFm6qZqNkrt"
)2. Get Available Products
Retrieve the list of in-app products configured in your IAPHUB dashboard.
let products = try await Iaphub.getProductsForSale()
for product in products {
print("\(product.title): \(product.price)")
}3. Purchase a Product
Process a purchase with built-in error handling. IAPHUB handles all the complexity of StoreKit.
do {
let transaction = try await Iaphub.buy("pack_10_coins")
print("Purchase successful!")
} catch {
print("Purchase failed: \(error.localizedDescription)")
}Skip the StoreKit Headaches
Implementing in-app purchases directly with StoreKit involves numerous challenges that can lead to lost revenue and frustrated users.
Complex Receipt Validation
Processing and validating Apple receipts with complex JSON structures and edge cases.
Version Compatibility
Managing both StoreKit 1 and 2 with different implementation approaches and APIs.
Transaction Management
Handling pending transactions, interrupted purchases, and transaction history.
Subscription Status Tracking
Managing subscription periods, grace periods, introductory offers, and groups.
Receipt Refresh Issues
Handling receipt refresh failures, network errors, and App Store connectivity.
Cross-Platform Consistency
Maintaining consistent purchase handling across iOS and Android.
IAPHUB handles all these complexities for you, providing a reliable, tested solution that saves you weeks of development time and prevents common implementation pitfalls.