KPayment is an open-source Kotlin Multiplatform library that unifies Apple Pay and Google Pay integration across Android, iOS, and Web (JS/WASM). Built by the KttiPay team after struggling with three incompatible SDKs, it provides a single config model, a shared Compose UI button that renders the correct native payment button per platform, and a sealed PaymentResult type with granular error handling. Payment availability is exposed as a Kotlin Flow for reactive UI state. Web is a first-class target with separate launchers for Google Pay and Apple Pay (Safari-only). The library ships as three modules (core, mobile, web) so projects only pull in what they need. Version 0.1.0 is available on Maven.

8m read timeFrom proandroiddev.com
Post cover image
Table of contents
Three platforms, three completely different problemsA payment has to earn the right to show upOne config model for all three platformsGet Konstantin Merenkov ’s stories in your inboxWhat comes back and what can go wrongWeb is a first-class targetWhat’s inside the boxWhat’s nextGitHub - kttipay/KPayment: Cross-Platform Apple Pay & Google Pay for Kotlin Multiplatform

Sort: