ComposeCard

? ComposeCards is a beautifully designed payment view library for Credit and Debit Cards. Made using Jetpack Compose ?

What’s included??

  • ?️Automatic card type recognition that supports the following cards:

    • Visa
    • Mastercard
    • RuPay
    • American Express
  • ?Simple VisualTransformation subclasses for the following use cases:

    • Card number (with custom separators, digit masking)

Adding the library to your project✨

Add the following to your root build.gradle file:

allprojects {
	repositories {
		maven { url 'https://jitpack.io' }
	}
}

Next, add the dependency below to your module‘s build.gradle file:

dependencies {
  implementation 'com.github.aritra-tech:ComposeCards:1.0.2'
}

Usage?

You can use the CardDetails by simply passing this to the screen you want to use. For example:

class MainActivity : ComponentActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContent {
            ComposeCardsTheme {
                CardDetails()
            }
        }
    }
}

GitHub

View Github