{"id":15543766,"url":"https://github.com/amiel/sexy_creditcard_selector","last_synced_at":"2025-04-05T04:25:38.465Z","repository":{"id":66642263,"uuid":"479372","full_name":"amiel/sexy_creditcard_selector","owner":"amiel","description":"when a valid credit card number is input to a text field, this jquery plugin calls a callback with the credit card company name","archived":false,"fork":false,"pushed_at":"2013-08-01T23:00:58.000Z","size":104,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-03T12:33:08.590Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amiel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-01-19T19:19:52.000Z","updated_at":"2019-08-13T14:30:41.000Z","dependencies_parsed_at":"2023-02-20T08:15:45.597Z","dependency_job_id":null,"html_url":"https://github.com/amiel/sexy_creditcard_selector","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amiel%2Fsexy_creditcard_selector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amiel%2Fsexy_creditcard_selector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amiel%2Fsexy_creditcard_selector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amiel%2Fsexy_creditcard_selector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amiel","download_url":"https://codeload.github.com/amiel/sexy_creditcard_selector/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247288892,"owners_count":20914452,"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","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-10-02T12:28:19.493Z","updated_at":"2025-04-05T04:25:38.442Z","avatar_url":"https://github.com/amiel.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Sexy Credit Card Selector\n\nWhen a valid credit card number is input to a text field, this jquery plugin calls a callback with the credit card company name. This allows for easy auto selecting of the credit card type when the user enters their credit card number.\n\t\n### Example\n\n```javascript\n$('#credit_card_number').sexy_creditcard_selector(function(company){ alert(\"nice \" + company + \" card\"); });\n```\n\nyou can also pass a string or jQuery object:\n\n```javascript\n$('#credit_card_number').sexy_creditcard_selector('#credit_card_type');\n// same as...\n$('#credit_card_number').sexy_creditcard_selector(function(company){ $('#credit_card_type').val(company); });\n```\n\n### Configuration\n\n```javascript\n$.fn.sexy_creditcard_selector.credit_companies = [\n\t\"switch\",\n\t\"visa\",\n\t\"diners_club\",\n\t\"master\",\n\t\"forbrugsforeningen\",\n\t\"dankort\",\n\t\"laser\",\n\t\"american_express\",\n\t\"solo\",\n\t\"jcb\",\n\t\"discover\",\n\t\"maestro\"\n]; // defaults to [ \"visa\", \"master\", \"american_express\", \"discover\" ]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famiel%2Fsexy_creditcard_selector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famiel%2Fsexy_creditcard_selector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famiel%2Fsexy_creditcard_selector/lists"}