{"id":47067070,"url":"https://github.com/sumup/sumup-dotnet","last_synced_at":"2026-04-01T22:23:44.685Z","repository":{"id":333353373,"uuid":"1127721035","full_name":"sumup/sumup-dotnet","owner":"sumup","description":"A sync/async .NET SDK for the SumUp API.","archived":false,"fork":false,"pushed_at":"2026-03-29T10:03:41.000Z","size":442,"stargazers_count":7,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-29T13:36:18.547Z","etag":null,"topics":["csharp","dotnet","payments","sdk","sumup"],"latest_commit_sha":null,"homepage":"https://developer.sumup.com/","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sumup.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"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}},"created_at":"2026-01-04T13:19:00.000Z","updated_at":"2026-03-29T10:03:28.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/sumup/sumup-dotnet","commit_stats":null,"previous_names":["sumup/sumup-dotnet"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/sumup/sumup-dotnet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumup%2Fsumup-dotnet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumup%2Fsumup-dotnet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumup%2Fsumup-dotnet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumup%2Fsumup-dotnet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sumup","download_url":"https://codeload.github.com/sumup/sumup-dotnet/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumup%2Fsumup-dotnet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31292639,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T21:15:39.731Z","status":"ssl_error","status_checked_at":"2026-04-01T21:15:34.046Z","response_time":53,"last_error":"SSL_read: 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":["csharp","dotnet","payments","sdk","sumup"],"created_at":"2026-03-12T05:07:23.565Z","updated_at":"2026-04-01T22:23:44.667Z","avatar_url":"https://github.com/sumup.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# SumUp .NET SDK\n\n[![NuGet](https://img.shields.io/nuget/v/sumup.svg)](https://www.nuget.org/packages/SumUp/)\n[![Documentation][docs-badge]](https://developer.sumup.com)\n[![CI Status](https://github.com/sumup/sumup-dotnet/workflows/CI/badge.svg)](https://github.com/sumup/sumup-dotnet/actions/workflows/ci.yml)\n[![License](https://img.shields.io/github/license/sumup/sumup-dotnet)](./LICENSE)\n\n\u003c/div\u003e\n\n_**IMPORTANT:** This SDK is under development. We might still introduce minor breaking changes before reaching v1._\n\nThe .NET SDK for the SumUp [API](https://developer.sumup.com).\n\n## Getting Started\n\n```sh\ndotnet add package SumUp --prerelease\n```\n\nSee `examples/Basic` and `examples/CardReaderCheckout` for runnable projects.\n\n## Supported .NET Versions\n\nWe target every currently supported .NET release line. Continuous Integration runs restore/build/test on .NET 8.x, 9.x, and 10.x to ensure the SDK works across all supported versions.\n\nAuthenticate by exporting an access token (or by assigning `SumUpClientOptions.AccessToken` directly):\n\n```sh\nexport SUMUP_ACCESS_TOKEN=\"my-token\"\n```\n\nThen call the API:\n\n```csharp\nusing System;\nusing SumUp;\n\nusing var client = new SumUpClient();\nvar response = await client.Checkouts.List();\n\nforeach (var checkout in response.Data ?? Array.Empty\u003cCheckoutSuccess\u003e())\n{\n    Console.WriteLine($\"Checkout {checkout.Id}: {checkout.Amount} {checkout.Currency}\");\n}\n```\n\n## Usage\n\n### Creating a Checkout\n\n```csharp\nusing System;\nusing SumUp;\n\nusing var client = new SumUpClient();\n\n// Merchant profile contains the merchant code required when creating checkouts\nvar merchantResponse = await client.Merchant.GetAsync();\nvar merchantCode = merchantResponse.Data?.MerchantProfile?.MerchantCode\n    ?? throw new InvalidOperationException(\"Merchant code not returned.\");\n\nvar checkoutReference = $\"checkout-{Guid.NewGuid():N}\";\n\nvar checkoutResponse = await client.Checkouts.CreateAsync(new CheckoutCreateRequest\n{\n    Amount = 10.00f,\n    Currency = Currency.Eur,\n    CheckoutReference = checkoutReference,\n    MerchantCode = merchantCode,\n    Description = \"Test payment\",\n    RedirectUrl = \"https://example.com/success\",\n    ReturnUrl = \"https://example.com/webhook\",\n});\n\nConsole.WriteLine($\"Checkout ID: {checkoutResponse.Data?.Id}\");\nConsole.WriteLine($\"Checkout Reference: {checkoutResponse.Data?.CheckoutReference}\");\n```\n\n### Creating a Reader Checkout\n\n```csharp\nusing System;\nusing SumUp;\n\nusing var client = new SumUpClient();\n\nvar readerCheckout = await client.Readers.CreateCheckoutAsync(\n    merchantCode: \"your-merchant-code\",\n    readerId: \"your-reader-id\",\n    body: new CreateReaderCheckoutRequest\n    {\n        Description = \"Coffee purchase\",\n        ReturnUrl = \"https://example.com/webhook\",\n        TotalAmount = new CreateReaderCheckoutRequestTotalAmount\n        {\n            Currency = \"EUR\",\n            MinorUnit = 2,\n            Value = 1000, // €10.00\n        },\n    });\n\nConsole.WriteLine($\"Reader checkout created: {readerCheckout.Data?.Data?.ClientTransactionId}\");\n```\n\n## Examples\n\n- `examples/Basic` – lists recent checkouts to sanity check your API token.\n- `examples/CardReaderCheckout` – mirrors the `../sumup-rs/examples/card_reader_checkout.rs` sample by listing the merchant’s paired readers and creating a €10 checkout on the first available device.\n\nTo run the card reader example:\n\n```sh\nexport SUMUP_ACCESS_TOKEN=\"your_api_key\"\nexport SUMUP_MERCHANT_CODE=\"your_merchant_code\"\n# Optional: set a specific reader, otherwise the first paired reader is chosen\n# export SUMUP_READER_ID=\"your_reader_id\"\ndotnet run --project examples/CardReaderCheckout\n```\n\n[docs-badge]: https://img.shields.io/badge/SumUp-documentation-white.svg?logo=data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgY29sb3I9IndoaXRlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogICAgPHBhdGggZD0iTTIyLjI5IDBIMS43Qy43NyAwIDAgLjc3IDAgMS43MVYyMi4zYzAgLjkzLjc3IDEuNyAxLjcxIDEuN0gyMi4zYy45NCAwIDEuNzEtLjc3IDEuNzEtMS43MVYxLjdDMjQgLjc3IDIzLjIzIDAgMjIuMjkgMFptLTcuMjIgMTguMDdhNS42MiA1LjYyIDAgMCAxLTcuNjguMjQuMzYuMzYgMCAwIDEtLjAxLS40OWw3LjQ0LTcuNDRhLjM1LjM1IDAgMCAxIC40OSAwIDUuNiA1LjYgMCAwIDEtLjI0IDcuNjlabTEuNTUtMTEuOS03LjQ0IDcuNDVhLjM1LjM1IDAgMCAxLS41IDAgNS42MSA1LjYxIDAgMCAxIDcuOS03Ljk2bC4wMy4wM2MuMTMuMTMuMTQuMzUuMDEuNDlaIiBmaWxsPSJjdXJyZW50Q29sb3IiLz4KPC9zdmc+\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsumup%2Fsumup-dotnet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsumup%2Fsumup-dotnet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsumup%2Fsumup-dotnet/lists"}