Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chmoder/credit_card
https://github.com/chmoder/credit_card
Last synced: 13 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/chmoder/credit_card
- Owner: chmoder
- License: other
- Created: 2020-07-29T01:16:26.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-06-21T13:33:47.000Z (over 3 years ago)
- Last Synced: 2024-10-06T22:18:31.230Z (about 1 month ago)
- Language: Rust
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Credit Card
Credit Card is a library for adding credit cards
to any project.[![Criterion](https://img.shields.io/criterion/chmoder/credit_card)](https://criterion.dev)
#### add credit_card as a dependency to Cargo.toml
```toml
credit_card = "0.1.3"
``````rust,norun
use credit_card::CreditCard;let mut cc = CreditCard {
number: "4111111111111111".to_string(),
cardholder_name: "Graydon Hoare".to_string(),
expiration_month: "01".to_string(),
expiration_year: "2023".to_string(),
brand: None,
security_code: None
};
cc.apply_brand();
```# Current Features
- Create CreditCards
- Add brand to credit cards from card number
- Validate credit card number# Future Features
- Validate CVV
- Validate Address
- ...
- Full card validation### Notice:
This is under development right now, so interfaces
and apis will be changing. If you are interested
in using this please create an issue or reach out
with your feature request so I can help add it.