{"id":18408893,"url":"https://github.com/chmoder/credit_card","last_synced_at":"2025-08-13T17:07:01.023Z","repository":{"id":57612365,"uuid":"283365388","full_name":"chmoder/credit_card","owner":"chmoder","description":null,"archived":false,"fork":false,"pushed_at":"2021-06-21T13:33:47.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-03T00:24:03.901Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chmoder.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-29T01:16:26.000Z","updated_at":"2021-06-21T13:33:50.000Z","dependencies_parsed_at":"2022-08-27T09:51:27.571Z","dependency_job_id":null,"html_url":"https://github.com/chmoder/credit_card","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chmoder/credit_card","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chmoder%2Fcredit_card","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chmoder%2Fcredit_card/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chmoder%2Fcredit_card/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chmoder%2Fcredit_card/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chmoder","download_url":"https://codeload.github.com/chmoder/credit_card/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chmoder%2Fcredit_card/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270278344,"owners_count":24557172,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-13T02:00:09.904Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T03:22:12.598Z","updated_at":"2025-08-13T17:07:00.977Z","avatar_url":"https://github.com/chmoder.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Credit Card\n\nCredit Card is a library for adding credit cards\nto any project.\n\n[![Criterion](https://img.shields.io/criterion/chmoder/credit_card)](https://criterion.dev)\n\n#### add credit_card as a dependency to Cargo.toml \n```toml\ncredit_card = \"0.1.3\"\n```\n\n```rust,norun\nuse credit_card::CreditCard;\n\nlet mut cc = CreditCard {\n    number: \"4111111111111111\".to_string(),\n    cardholder_name: \"Graydon Hoare\".to_string(),\n    expiration_month: \"01\".to_string(),\n    expiration_year: \"2023\".to_string(),\n    brand: None,\n    security_code: None\n};\ncc.apply_brand();\n```\n\n# Current Features\n- Create CreditCards\n- Add brand to credit cards from card number\n- Validate credit card number\n\n# Future Features\n- Validate CVV\n- Validate Address\n- ...\n- Full card validation\n\n### Notice:\nThis is under development right now, so interfaces\nand apis will be changing.  If you are interested\nin using this please create an issue or reach out\nwith your feature request so I can help add it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchmoder%2Fcredit_card","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchmoder%2Fcredit_card","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchmoder%2Fcredit_card/lists"}