{"id":29774535,"url":"https://github.com/hyochan/kmp-iap","last_synced_at":"2026-01-21T00:02:01.957Z","repository":{"id":304606598,"uuid":"1017288158","full_name":"hyochan/kmp-iap","owner":"hyochan","description":"In App Purchase module in Kotlin Multi Platform","archived":false,"fork":false,"pushed_at":"2026-01-17T01:23:24.000Z","size":8454,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-17T11:42:29.485Z","etag":null,"topics":["compose-multiplatform","compose-multiplatform-library","iap","inapppurchase","kotlin","multiplatform","open-iap","openiap"],"latest_commit_sha":null,"homepage":"https://hyochan.github.io/kmp-iap","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hyochan.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-07-10T09:57:11.000Z","updated_at":"2026-01-17T01:10:28.000Z","dependencies_parsed_at":"2025-07-14T08:36:49.272Z","dependency_job_id":"00f38215-ba86-4afa-a9a3-949630e44c27","html_url":"https://github.com/hyochan/kmp-iap","commit_stats":null,"previous_names":["hyochan/kmp-iap"],"tags_count":23,"template":false,"template_full_name":null,"purl":"pkg:github/hyochan/kmp-iap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyochan%2Fkmp-iap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyochan%2Fkmp-iap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyochan%2Fkmp-iap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyochan%2Fkmp-iap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hyochan","download_url":"https://codeload.github.com/hyochan/kmp-iap/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyochan%2Fkmp-iap/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28618860,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T23:49:58.628Z","status":"ssl_error","status_checked_at":"2026-01-20T23:47:29.996Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["compose-multiplatform","compose-multiplatform-library","iap","inapppurchase","kotlin","multiplatform","open-iap","openiap"],"created_at":"2025-07-27T08:08:27.992Z","updated_at":"2026-01-21T00:02:01.951Z","avatar_url":"https://github.com/hyochan.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kmp-iap\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/hyochan/kmp-iap/blob/main/docs/static/img/logo.png\" width=\"200\" alt=\"kmp-iap logo\" /\u003e\n  \n  \u003ca href=\"https://central.sonatype.com/artifact/io.github.hyochan/kmp-iap\"\u003e\u003cimg src=\"https://img.shields.io/maven-central/v/io.github.hyochan/kmp-iap.svg?style=flat-square\" alt=\"Maven Central\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/hyochan/kmp-iap/actions/workflows/gradle.yml\"\u003e\u003cimg src=\"https://github.com/hyochan/kmp-iap/actions/workflows/gradle.yml/badge.svg\" alt=\"Java CI with Gradle\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://openiap.dev\"\u003e\u003cimg src=\"https://img.shields.io/badge/OpenIAP-Compliant-green?style=flat-square\" alt=\"OpenIAP Compliant\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://codecov.io/gh/hyochan/kmp-iap\"\u003e\u003cimg src=\"https://codecov.io/gh/hyochan/kmp-iap/branch/main/graph/badge.svg?token=YOUR_TOKEN\" alt=\"Coverage Status\" /\u003e\u003c/a\u003e\n  \u003cimg src=\"https://img.shields.io/badge/license-MIT-blue.svg\" alt=\"License\" /\u003e\n  \n  A comprehensive Kotlin Multiplatform library for in-app purchases on Android and iOS platforms that conforms to the \u003ca href=\"https://openiap.dev\"\u003eOpen IAP specification\u003c/a\u003e\n  \n  \u003ca href=\"https://openiap.dev\"\u003e\u003cimg src=\"https://github.com/hyodotdev/openiap/blob/main/logo.png\" alt=\"Open IAP\" height=\"40\" /\u003e\u003c/a\u003e\n\u003c/div\u003e\n\n## 📚 Documentation\n\nVisit the documentation site for installation guides, API reference, and examples:\n\n### **[hyochan.github.io/kmp-iap](https://hyochan.github.io/kmp-iap)**\n\n## Using with AI Assistants\n\nkmp-iap provides AI-friendly documentation for Cursor, GitHub Copilot, Claude, and ChatGPT.\n\n**[📖 AI Assistants Guide →](https://hyochan.github.io/kmp-iap/docs/guides/ai-assistants)**\n\nQuick links:\n- [llms.txt](https://hyochan.github.io/kmp-iap/llms.txt) - Quick reference (~300 lines)\n- [llms-full.txt](https://hyochan.github.io/kmp-iap/llms-full.txt) - Full API reference (~1000 lines)\n\n## 📦 Installation\n\n```kotlin\ndependencies {\n    implementation(\"io.github.hyochan:kmp-iap:1.3.5\")\n}\n```\n\n## 🚀 Quick Start\n\n### Option 1: Using Global Instance (Simple)\n\n```kotlin\nimport io.github.hyochan.kmpiap.kmpIapInstance\nimport io.github.hyochan.kmpiap.*\n\n// Use the global singleton instance\nkmpIapInstance.initConnection()\n\n// Get products - DSL API in v1.0.0-rc.2\nval products = kmpIapInstance.fetchProducts {\n    skus = listOf(\"product_id\")\n    type = ProductQueryType.InApp\n}\n\n// Request purchase - DSL API with platform-specific options\nval purchase = kmpIapInstance.requestPurchase {\n    ios {\n        sku = \"product_id\"\n        quantity = 1\n    }\n    android {\n        skus = listOf(\"product_id\")\n    }\n}\n\n// Or just for one platform\nval iosPurchase = kmpIapInstance.requestPurchase {\n    ios {\n        sku = \"product_id\"\n    }\n}\n\n// Finish transaction (after server-side validation)\nkmpIapInstance.finishTransaction(\n    purchase = purchase.toPurchaseInput(),\n    isConsumable = true // true for consumables, false for subscriptions\n)\n```\n\n### Option 2: Create Your Own Instance (Recommended for Testing)\n\n```kotlin\nimport io.github.hyochan.kmpiap.KmpIAP\nimport io.github.hyochan.kmpiap.*\n\n// Create your own instance\nval kmpIAP = KmpIAP()\n\n// Initialize connection\nkmpIAP.initConnection()\n\n// Get products - DSL API in v1.0.0-rc.2\nval products = kmpIAP.fetchProducts {\n    skus = listOf(\"product_id\")\n    type = ProductQueryType.InApp\n}\n\n// Request purchase - DSL API with platform-specific options\nval purchase = kmpIAP.requestPurchase {\n    ios {\n        sku = \"product_id\"\n        quantity = 1\n    }\n    android {\n        skus = listOf(\"product_id\")\n    }\n}\n\n// Or just for one platform\nval androidPurchase = kmpIAP.requestPurchase {\n    android {\n        skus = listOf(\"product_id\")\n    }\n}\n\n// Finish transaction (after server-side validation)\nkmpIAP.finishTransaction(\n    purchase = purchase.toPurchaseInput(),\n    isConsumable = true // true for consumables, false for subscriptions\n)\n```\n\n## 📄 License\n\nMIT License - see [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyochan%2Fkmp-iap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhyochan%2Fkmp-iap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyochan%2Fkmp-iap/lists"}