Skip to main content
kmp-iap logo

KMP IAP

A Kotlin Multiplatform library for in-app purchases on iOS and Android

Easy to Use

kmp-iap was designed from the ground up to be easily installed and used to get your in-app purchases up and running quickly.

Focus on What Matters

kmp-iap lets you focus on your app logic, and we'll handle the purchase flows. Go ahead and implement your store with confidence.

Cross-Platform

Works seamlessly on both iOS and Android with unified APIs. Write once, purchase everywhere with consistent behavior.

Unified API Spec

99% API compatibility with expo-iap and other cross-platform solutions. Easy migration and familiar patterns for developers.

Modern & Reliable

Built with the latest StoreKit 2 and Google Play Billing v7 APIs. Battle-tested by thousands of apps in production.

Open Source

Completely open source with active community support. Join us in making in-app purchases better for everyone.

Simple to Use

// Initialize
KmpIAP.initConnection()

// Load products
val products = KmpIAP.requestProducts(
    ProductRequest(
        skus = listOf("product_id"),
        type = ProductType.INAPP
    )
)

// Make purchase
KmpIAP.requestPurchase(
    UnifiedPurchaseRequest(
        sku = "product_id",
        quantity = 1
    )
)

// Listen to updates
KmpIAP.purchaseUpdatedListener.collect { purchase ->
    // Handle purchase
}