Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aritra-tech/ComposeCards
π³ ComposeCards is a beautifully designed payment view library for Credit and Debit Card. Made using Jetpack Compose π
https://github.com/aritra-tech/ComposeCards
android android-library compose credit-card hackoctoberfest jetpack-compose jetpack-compose-library kotlin payment
Last synced: 9 days ago
JSON representation
π³ ComposeCards is a beautifully designed payment view library for Credit and Debit Card. Made using Jetpack Compose π
- Host: GitHub
- URL: https://github.com/aritra-tech/ComposeCards
- Owner: aritra-tech
- License: apache-2.0
- Created: 2023-09-09T06:17:19.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-07-22T18:14:22.000Z (4 months ago)
- Last Synced: 2024-07-22T21:54:03.512Z (4 months ago)
- Topics: android, android-library, compose, credit-card, hackoctoberfest, jetpack-compose, jetpack-compose-library, kotlin, payment
- Language: Kotlin
- Homepage:
- Size: 6.83 MB
- Stars: 123
- Watchers: 1
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome-list - aritra-tech/ComposeCards - π³ ComposeCards is a beautifully designed payment view library for Credit and Debit Card. Made using Jetpack Compose π (Kotlin)
README
ComposeCard
π³ 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- π€© Simple VisualTransformation subclasses for the following use cases:
- Card number (with custom separators, digit masking)## Adding the library to your projectβ¨
[![](https://jitpack.io/v/aritra-tech/ComposeCards.svg)](https://jitpack.io/#aritra-tech/ComposeCards)
Add the following to your **root** `build.gradle` file:
```gradle
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)
```kotlin
dependencies {
implementation("com.github.aritra-tech:ComposeCards:$currentVersion")
}
```Groovy
```kotlin
dependencies {
implementation 'com.github.aritra-tech:ComposeCards:$currentVersion'
}
```## Usageπ
You can use the `CardDetails` by simply passing this to the screen you want to use. For example:```kotlin
CardDetails(
creditCardNumber = "378282246310005",
creditCardHolderName = "John Doe",
creditCardExpiryDate = "02/29",
creditCardCVV = "101",
onSave = {}
)
```### `CardDetails` Parameters
| Parameter | Description
|----------------------------------|-------------------------------------------------------------------------------------------------
| `creditCardNumber` | The card number input by the user.
| `creditCardHolderName` | The card holder's name is input by the user.
| `creditCardExpiryDate` | The card's expiry date is input by the user.
| `creditCardCVV` | The card's CVV input by the user.
| `onSave` | Callback function to handle save action.## Reporting Issues and Requesting Featuresβ¨
If you encounter any issues or have feature requests, please create a new [issue](https://github.com/aritra-tech/ComposeCards/issues) in this repository.## Supporting ComposeCards :heart:
Support it by joining __[stargazers](https://github.com/aritra-tech/ComposeCards/stargazers)__ for this repository. :star:
Also __[follow](https://github.com/aritra-tech)__ me for my next creations! π€©## Star History β
[![Star History Chart](https://api.star-history.com/svg?repos=aritra-tech/ComposeCards&type=Date)](https://star-history.com/#aritra-tech/ComposeCards&Date)
## License
```
Copyright 2023 aritra-techLicensed 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 athttp://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.