Crates.io | credit_card |
lib.rs | credit_card |
version | 0.1.4 |
source | src |
created_at | 2020-07-29 02:07:28.159079 |
updated_at | 2021-06-20 20:10:42.89907 |
description | A fundamental credit card library |
homepage | |
repository | https://github.com/chmoder/credit_card/ |
max_upload_size | |
id | 270723 |
size | 17,602 |
Credit Card is a library for adding credit cards to any project.
credit_card = "0.1.3"
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();
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.