{"repo":"Aditya-gupta99/In-app-purchase-kmp","free":true,"listed":false,"github":"https://github.com/Aditya-gupta99/In-app-purchase-kmp","clone":"git clone https://github.com/Aditya-gupta99/In-app-purchase-kmp.git","description":"Kotlin Multiplatform library that provides unified in-app purchase functionality for Android and iOS platforms","language":"Kotlin","stars":13,"topics":["android","compose-multiplatform","google-play","kmp-library","kotlin-multiplatform","storekit2","in-app-purchase","kotlin","swift","billing"],"license":"Apache-2.0","category":"mobile-apps","readme_excerpt":"In App Purchase Kmp Library A Kotlin Multiplatform library that provides unified in-app purchase functionality for Android and iOS platforms. This library abstracts Google Play Billing (Android) and StoreKit 2 (iOS) into a single, easy-to-use API. Features - Cross-platform in-app purchase support for Android and iOS - Google Play Billing v6 integration for Android - StoreKit 2 support for iOS - Suspend function support for async operations - Flow-based purchase updates - Product querying and purchase management - Purchase acknowledgment and consumption - Purchase restoration support - Dependency injection ready (Koin integration included) Installation Add the following dependency to your Setup Dependency Injection Configuration Create IAPManager object to inject into activity. Common Payment Module: Android Setup For Android, you need to provide both context and activity to the IAPManager . Set this up in your main activity: Usage Basic Implementation Detailed API Usage The following sections provide detailed examples of how to use each method from the IAPManager class that you saw in the basic implementation above. Initialize the Library Query Available Products Launch Purchase Flow Monitor Purchase Updates Acknowledge Purchase For non-consumable products: Consume Purchase For consumable products: Get Existing Purchases Restore Purchases 📐 Interface Overview The IAPManager is the core interface of the library that provides all necessary functions to handle in-app purchases ","default_branch":null,"files":null,"tree":[],"storefront":"/r/Aditya-gupta99","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Aditya-gupta99/In-app-purchase-kmp/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}