{"id":35427676,"url":"https://github.com/soenneker/soenneker.blazor.creditcards","last_synced_at":"2026-04-24T00:03:10.091Z","repository":{"id":290820577,"uuid":"975519567","full_name":"soenneker/soenneker.blazor.creditcards","owner":"soenneker","description":"A beautiful, animated credit card component with real-time updates and brand detection","archived":false,"fork":false,"pushed_at":"2026-04-14T03:58:36.000Z","size":1358,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-04-14T05:31:01.333Z","etag":null,"topics":["blazor","blazorlibrary","card","cards","credit","creditcards","creditcardsinterop","csharp","debit","dotnet","method","methods","payment","processing"],"latest_commit_sha":null,"homepage":"https://soenneker.com","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/soenneker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"soenneker","thanks_dev":"soenneker"}},"created_at":"2025-04-30T12:56:56.000Z","updated_at":"2026-04-14T03:57:01.000Z","dependencies_parsed_at":"2026-03-09T22:01:32.100Z","dependency_job_id":null,"html_url":"https://github.com/soenneker/soenneker.blazor.creditcards","commit_stats":null,"previous_names":["soenneker/soenneker.blazor.creditcards"],"tags_count":357,"template":false,"template_full_name":null,"purl":"pkg:github/soenneker/soenneker.blazor.creditcards","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soenneker%2Fsoenneker.blazor.creditcards","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soenneker%2Fsoenneker.blazor.creditcards/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soenneker%2Fsoenneker.blazor.creditcards/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soenneker%2Fsoenneker.blazor.creditcards/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/soenneker","download_url":"https://codeload.github.com/soenneker/soenneker.blazor.creditcards/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soenneker%2Fsoenneker.blazor.creditcards/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32069440,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T21:26:33.338Z","status":"ssl_error","status_checked_at":"2026-04-20T21:26:22.081Z","response_time":94,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["blazor","blazorlibrary","card","cards","credit","creditcards","creditcardsinterop","csharp","debit","dotnet","method","methods","payment","processing"],"created_at":"2026-01-02T19:23:03.692Z","updated_at":"2026-04-20T23:01:21.825Z","avatar_url":"https://github.com/soenneker.png","language":"CSS","funding_links":["https://github.com/sponsors/soenneker","https://thanks.dev/soenneker"],"categories":[],"sub_categories":[],"readme":"[![](https://img.shields.io/nuget/v/soenneker.blazor.creditcards.svg?style=for-the-badge)](https://www.nuget.org/packages/soenneker.blazor.creditcards/)\n[![](https://img.shields.io/github/actions/workflow/status/soenneker/soenneker.blazor.creditcards/publish-package.yml?style=for-the-badge)](https://github.com/soenneker/soenneker.blazor.creditcards/actions/workflows/publish-package.yml)\n[![](https://img.shields.io/nuget/dt/soenneker.blazor.creditcards.svg?style=for-the-badge)](https://www.nuget.org/packages/soenneker.blazor.creditcards/)\n[![](https://img.shields.io/badge/Demo-Live-blueviolet?style=for-the-badge\u0026logo=github)](https://soenneker.github.io/soenneker.blazor.creditcards/)\n[![](https://img.shields.io/github/actions/workflow/status/soenneker/soenneker.blazor.creditcards/codeql.yml?label=CodeQL\u0026style=for-the-badge)](https://github.com/soenneker/soenneker.blazor.creditcards/actions/workflows/codeql.yml)\n\n# ![](https://user-images.githubusercontent.com/4441470/224455560-91ed3ee7-f510-4041-a8d2-3fc093025112.png) Soenneker.Blazor.CreditCards\n\n### A beautiful, animated credit card component with real-time updates and brand detection\n\n![image](https://github.com/user-attachments/assets/b0b21f74-0ef0-4a46-9b87-cf68a5110d32)\n\n## Installation\n\n```\ndotnet add package Soenneker.Blazor.CreditCards\n```\n\n---\n\n### ? Features\n\n- ?? Live-updating, animated card rendering\n- ?? Automatic card type detection (Visa, Mastercard, Amex, etc.)\n- ??? Built-in front/back flip animation\n- ??? Click event support for interactive behaviors\n- ?? Placeholder logic for empty cards\n- ?? Perfect for forms, payment demos, and simulations\n\n---\n\n## ?? Installation\n\n```bash\ndotnet add package Soenneker.Blazor.CreditCards\n```\n\n---\n\n## ??? Usage\n\n### 1. Register the interop service\n\n```csharp\nbuilder.Services.AddCreditCardsInteropAsScoped();\n```\n\n### 2. Add the component\n\n```razor\n\u003cCreditCard CardNumber=\"@CardNumber\"\n            CardholderName=\"@CardholderName\"\n            ExpiryDate=\"@ExpiryDate\"\n            Cvc=\"@Cvc\"\n            FlipEnabled=\"true\"\n            OnClick=\"HandleCardClick\"\n            @ref=\"_creditCard\" /\u003e\n\n### 3. Handle click events (optional)\n\n```csharp\nprivate async Task HandleCardClick(MouseEventArgs args)\n{\n    // Example: Flip the card when clicked\n    _creditCard?.Flip();\n    \n    // Or perform any other action\n    Console.WriteLine($\"Card clicked at: {args.ClientX}, {args.ClientY}\");\n}\n```\n\n### 4. Control flip functionality\n\n```razor\n\u003c!-- Enable/disable flip functionality --\u003e\n\u003cCreditCard FlipEnabled=\"false\" ... /\u003e\n\n\u003c!-- Default behavior: flip is enabled --\u003e\n\u003cCreditCard FlipEnabled=\"true\" ... /\u003e\n```\n\n**FlipEnabled Parameter:**\n- `true` (default): Card can be flipped by clicking or programmatically\n- `false`: Disables flip functionality, cursor changes to default, and Flip() method does nothing\n\n### 5. Programmatic card control\n\n```csharp\n// Flip the card programmatically\n_creditCard?.Flip();\n\n// Set last 4 digits only (for saved cards)\nawait _creditCard?.SetLast4(\"1234\", \"visa\");\n\n// Reset to full input mode\n_creditCard?.ResetCardDetection();\n```\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoenneker%2Fsoenneker.blazor.creditcards","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoenneker%2Fsoenneker.blazor.creditcards","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoenneker%2Fsoenneker.blazor.creditcards/lists"}