Skip to content

๐Ÿ’ณ ComposeCards is a beautifully designed payment view library for Credit and Debit Card. Made using Jetpack Compose ๐ŸŽ‰

Notifications You must be signed in to change notification settings

myofficework000/Cards

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

28 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Compose Card In Jetpack Compose Library


material API Kotlin <<<<<<< HEAD Jetpack Compose ======= >>>>>>> 6c1bec2e3f20997eab54f8476115fcd755eb2891

๐Ÿ’ณ ComposeCards is a beautifully designed payment view library for Credit and Debit Cards. Made using Jetpack Compose ๐ŸŽ‰. It allows you to easily integrate Payment View with much smooth UI and animations.


What's included?๐Ÿ“œ

  • ๐Ÿ—‚๏ธAutomatic card type recognition that supports the following cards:

    • Visa
    • Mastercard
    • RuPay
    • American Express
    • Maestro
    • Diners Club etc
  • ๐ŸคฉSimple VisualTransformation subclasses for the following use cases:

    • Card number (with custom separators, digit masking)

Steps to Add the library to your project

Add the following to your root build.gradle file:

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

Lastly, add the following dependency to your app's build.gradle.kts (Kotlin) or build.gradle (Groovy) file:

Kotlin (KTS)
dependencies {
        implementation ("com.github.myofficework000:Cards:1.0.0")
}
Groovy

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()
            }
        }
    }
}

License

Copyright 2024 Abhishek Pathak

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Setup Requirements

  • An Android device or emulator ๐Ÿ“ฑ
  • Android Studio ๐Ÿ’ป

Getting Started

Ready to try it out yourself? Here's what to do:

  1. Clone this project ๐Ÿ‘
  2. Import the project into Android Studio ๐Ÿš€
  3. Connect your Android device via USB or start your emulator ๐ŸŒ
  4. Once the project has finished setting up, click the "run" button ๐Ÿƒโ€โ™‚๏ธ

Contact - Let's become friend

Don't forget to star โญ the repo it motivates me to share more open source

About

๐Ÿ’ณ ComposeCards is a beautifully designed payment view library for Credit and Debit Card. Made using Jetpack Compose ๐ŸŽ‰

Topics

Resources

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Languages