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.

Swift & Objective-CStoreKit 1 & 2Server ValidationOpen Source on GitHub

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:

Terminal
$pod 'Iaphub'

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.

Code Editor
try await Iaphub.start(
    appId: "5e4890f6c61fc971cf46db4d",
    apiKey: "SDp7aY220RtzZrsvRpp4BGFm6qZqNkrt"
)

2. Get Available Products

Retrieve the list of in-app products configured in your IAPHUB dashboard.

Code Editor
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.

Code Editor
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.

Frequently Asked Questions

Add the IAPHUB iOS SDK via CocoaPods or Swift Package Manager, initialize it with your API credentials, and use the simple Swift or Objective-C API to implement consumables, subscriptions, and non-consumable products in your iOS app.
Yes! The IAPHUB iOS SDK works seamlessly with both Swift and Objective-C, providing a clean API that feels natural in either language.
The SDK supports both StoreKit 1 and StoreKit 2, allowing you to use the latest Apple features while maintaining backward compatibility with older iOS versions.
The SDK supports all IAP types: consumables (coins, credits), non-consumables (premium features), and auto-renewable subscriptions with full support for trial periods, grace periods, and introductory offers.
Yes, IAPHUB offers a generous free tier perfect for indie iOS developers, startups, and apps testing in-app purchase integration before launch.
Yes, IAPHUB provides server-side receipt validation for the App Store, ensuring all purchases are verified and secure without any additional setup required.
Absolutely! IAPHUB provides SDKs for both iOS and Android, allowing you to manage all your apps from a single dashboard with consistent APIs across platforms.