Android SDK
Overview
coinflow-card-form is a Jetpack Compose SDK that embeds Coinflow’s card tokenization form directly into Android apps. The user enters their card inside your app, the SDK returns a payment token, and your backend charges the card via the standard Coinflow checkout API.
- Package:
cash.coinflow:coinflow-card-form - Distribution: Maven Central
- Current version:
0.1.0
Requirements
- Android
minSdk24+ - Kotlin 1.9+
- Jetpack Compose
Installation
Integration
Add the card form composable
Drop CoinflowCardFormView into your Compose layout and pass a CoinflowCardFormController you’ll use to trigger tokenization.
your-merchant-id is an example placeholder. Use your actual merchant ID from the merchant dashboard, or contact the Coinflow integrations team. Typically read from a BuildConfig field, not hard-coded.
Configure the environment
CoinflowEnv.SANDBOX— test cards, no real moneyCoinflowEnv.PROD— live cards, real money
Charge the token server-side
controller.tokenize() is a suspend function. It returns a TokenizeResponse:
token: String— payment token to send to your backendexpMonth: String?,expYear: String?— populated only for variants that collect expiry
Send the token to your server and call Coinflow’s checkout API to charge it. See the Checkout API reference for the full request shape.
Variants
Theming
MerchantTheme styles the rendered form. All fields optional.
All theme fields
Resources
- Source: github.com/coinflow-labs-us/coinflow-android
- Maven Central: cash.coinflow:coinflow-card-form
- License: Apache 2.0
- Checkout API: Card Checkout endpoint

