{"id":25638525,"url":"https://github.com/marfusios/btcpayserver-client","last_synced_at":"2026-05-15T11:34:31.240Z","repository":{"id":40879825,"uuid":"258871843","full_name":"Marfusios/btcpayserver-client","owner":"Marfusios","description":"C# client for BTCPayServer","archived":false,"fork":false,"pushed_at":"2022-12-08T10:15:57.000Z","size":116,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-23T02:33:22.651Z","etag":null,"topics":["bitcoin","btcpay","btcpay-client","btcpayserver","client","cryptocurrency"],"latest_commit_sha":null,"homepage":"","language":"C#","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/Marfusios.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-04-25T20:51:59.000Z","updated_at":"2024-01-23T04:45:38.000Z","dependencies_parsed_at":"2023-01-25T00:00:17.814Z","dependency_job_id":null,"html_url":"https://github.com/Marfusios/btcpayserver-client","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Marfusios/btcpayserver-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marfusios%2Fbtcpayserver-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marfusios%2Fbtcpayserver-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marfusios%2Fbtcpayserver-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marfusios%2Fbtcpayserver-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Marfusios","download_url":"https://codeload.github.com/Marfusios/btcpayserver-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marfusios%2Fbtcpayserver-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33065533,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-15T02:00:06.351Z","response_time":103,"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":["bitcoin","btcpay","btcpay-client","btcpayserver","client","cryptocurrency"],"created_at":"2025-02-23T02:31:44.210Z","updated_at":"2026-05-15T11:34:31.221Z","avatar_url":"https://github.com/Marfusios.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Logo](btcpayserver-logo.png)\n# BTCPay Server client [![Build Status](https://travis-ci.com/Marfusios/btcpayserver-client.svg?branch=master)](https://travis-ci.com/Marfusios/btcpayserver-client) [![NuGet version](https://badge.fury.io/nu/BTCPayServer.Client.svg)](https://www.nuget.org/packages/BTCPayServer.Client) [![Nuget downloads](https://img.shields.io/nuget/dt/BTCPayServer.Client)](https://www.nuget.org/packages/BTCPayServer.Client)\n\nThis is a C# client for BTCPayServer. Taken from [official repository](https://github.com/btcpayserver/btcpayserver/tree/master/BTCPayServer.Client) and bundled into Nuget package.\n\n*[WIP] Not yet ready!* \n\n[Releases and breaking changes](https://github.com/Marfusios/btcpayserver-client/releases)\n\n### License: \n    MIT\n\n### Features\n\n* installation via NuGet ([BTCPayServer.Client](https://www.nuget.org/packages/BTCPayServer.Client))\n* targeting .NET Standard 2.0 (.NET Core, Linux/MacOS compatible)\n\n### Usage (legacy API)\n\n* **Server side:**\n```csharp\n\n// create an invoice\n\nvar client = new BTCPayServerClientLegacy(new Uri(\"https://btcpay.yourserver.com\"), \"legacy_api_key\");\n\nvar invoice = await client.CreateInvoice(new InvoiceRequestLegacy()\n{\n    Currency = \"USD\",\n    Price = 100m,\n    ItemDesc = \"Payment for my_store_order\",\n    OrderId = \"my_store_order::xxxyyy\",\n    NotificationUrl = new Uri(\"https://webhook.site/03b96bf0-dbd3-4da0-b3d1-54aa5e7f794c\"),\n    RedirectUrl = new Uri(\"https://webhook.site/03b96bf0-dbd3-4da0-b3d1-54aa5e7f794c\")\n});\n\n\n// getting an invoice by id\n// you have to also specify a token (don't really know why :( )\n\nvar invoiceId = invoice.Id;\nvar invoiceToken = invoice.Token;\nvar existingInvoice = await client.GetInvoice(invoiceId, invoiceToken);\n\n```\n\n\n* **Client side:**\n\n```html\n\n// display a checkout modal with created invoice id from the previous step\n\n\u003cscript src =\"https://your.btcpay.url/modal/btcpay.js\"\u003e\u003c/script\u003e\nwindow.btcpay.showInvoice(invoiceId);\n\n\n// event listeners\n\nwindow.btcpay.onModalWillEnter(yourCallbackFunction);\nwindow.btcpay.onModalWillLeave(yourCallbackFunction);\n\n```\n\n### Usage (new API)\n\n* *Not implemented on BTCPay Server yet*\n\n\nMore usage examples:\n* console sample ([link](test_integration/BTCPayServer.Client.Sample/Program.cs))\n\n**Pull Requests are welcome!**\n\n---\n\n### Available for help\nI do consulting, please don't hesitate to contact me if you have a custom solution you would like me to implement ([web](http://mkotas.cz/), \n\u003cm@mkotas.cz\u003e)\n\nDonations gratefully accepted.\n* [![Donate with Bitcoin](https://en.cryptobadges.io/badge/small/1HfxKZhvm68qK3gE8bJAdDBWkcZ2AFs9pw)](https://en.cryptobadges.io/donate/1HfxKZhvm68qK3gE8bJAdDBWkcZ2AFs9pw)\n* [![Donate with Litecoin](https://en.cryptobadges.io/badge/small/LftdENE8DTbLpV6RZLKLdzYzVU82E6dz4W)](https://en.cryptobadges.io/donate/LftdENE8DTbLpV6RZLKLdzYzVU82E6dz4W)\n* [![Donate with Ethereum](https://en.cryptobadges.io/badge/small/0xb9637c56b307f24372cdcebd208c0679d4e48a47)](https://en.cryptobadges.io/donate/0xb9637c56b307f24372cdcebd208c0679d4e48a47)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarfusios%2Fbtcpayserver-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarfusios%2Fbtcpayserver-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarfusios%2Fbtcpayserver-client/lists"}