{"id":37042283,"url":"https://github.com/armutcom/iyzipay-dotnet-client","last_synced_at":"2026-01-14T04:59:24.637Z","repository":{"id":40909254,"uuid":"127969149","full_name":"armutcom/iyzipay-dotnet-client","owner":"armutcom","description":"iyzipay api .net framework and .net core client ","archived":false,"fork":false,"pushed_at":"2022-12-07T20:29:55.000Z","size":738,"stargazers_count":30,"open_issues_count":3,"forks_count":9,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-10-04T12:08:33.929Z","etag":null,"topics":["armutcom","client-library","dotnet","dotnet-core","iyzico","iyzipay"],"latest_commit_sha":null,"homepage":"https://armut.com","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/armutcom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-04-03T21:09:24.000Z","updated_at":"2023-01-03T12:08:34.000Z","dependencies_parsed_at":"2023-01-24T06:01:10.586Z","dependency_job_id":null,"html_url":"https://github.com/armutcom/iyzipay-dotnet-client","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/armutcom/iyzipay-dotnet-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/armutcom%2Fiyzipay-dotnet-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/armutcom%2Fiyzipay-dotnet-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/armutcom%2Fiyzipay-dotnet-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/armutcom%2Fiyzipay-dotnet-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/armutcom","download_url":"https://codeload.github.com/armutcom/iyzipay-dotnet-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/armutcom%2Fiyzipay-dotnet-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28410033,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"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":["armutcom","client-library","dotnet","dotnet-core","iyzico","iyzipay"],"created_at":"2026-01-14T04:59:23.976Z","updated_at":"2026-01-14T04:59:24.631Z","avatar_url":"https://github.com/armutcom.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Iyzipay Client Library for .Net Framework and .Net Core\n\nUnofficial Iyzipay client library that is maintained by [Armut.com](https://armut.com/), a fork of the [iyzipay-dotnet](https://github.com/iyzico/iyzipay-dotnet)\n\nSupports .NET Framework, .NET Core 1.1, .NET Core 2.0 runtimes, .NET Core 2.1 runtimes\n\nYou can sign up for an iyzico account at https://iyzico.com\n\n## Builds status\n| Build server                | Platform      | Build status                                                                                                                                                        | \n|-----------------------------|---------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Azure Pipelines             | Ubuntu        | [![Build status](https://dev.azure.com/armutcom/iyzipay-dotnet-client/_apis/build/status/iyzipay-dotnet-client%20-%20Ubuntu)](https://dev.azure.com/armutcom/iyzipay-dotnet-client/_build/latest?definitionId=4) | |\n| Azure Pipelines             | MacOs         | [![Build status](https://dev.azure.com/armutcom/iyzipay-dotnet-client/_apis/build/status/iyzipay-dotnet-client%20-%20MacOs)](https://dev.azure.com/armutcom/iyzipay-dotnet-client/_build/latest?definitionId=5) | |\n| Azure Pipelines             | Windows       | [![Build status](https://dev.azure.com/armutcom/iyzipay-dotnet-client/_apis/build/status/iyzipay-dotnet-client%20-%20Windows)](https://dev.azure.com/armutcom/iyzipay-dotnet-client/_build/latest?definitionId=6) | |\n\n## Installation\n[![NuGet](https://img.shields.io/nuget/v/Armut.Iyzipay.svg)](https://www.nuget.org/packages/Armut.Iyzipay)\n\nTo install Armut.Iyzipay, run the following command in the Package Manager Console\n\n```\nInstall-Package Armut.Iyzipay\n```\n \n# Relation To Official Iyzipay\n\nThis client library is a fork of [iyzipay-dotnet](https://github.com/iyzico/iyzipay-dotnet). The following improvements have been made:\n\n- Unit tests in [iyzipay-java](https://github.com/iyzico/iyzipay-java) library have been adapted to C#.\n- Supported .NET Core 1.1 and .NET Core 2.0 by converting the client library to .NET Standard.\n- Async support provided.\n- Instead of creating a new 'HttpClient' in each request, the shared 'HttpClient' has been used.\n- Refactoring done according to C# coding standards.\n\nBecause armut.com is already using iyzico, armut.com will keep the Armut.Iyzipay project up to date and maintain it.\n\n# Usage\n\n```csharp\nvar options = new Options\n{\n\tApiKey = \"your api key\",\n\tSecretKey = \"your secret key\",\n\tBaseUrl = \"https://sandbox-api.iyzipay.com\"\n};\n\t\t\nvar request = new CreatePaymentRequest\n{\n\tLocale = Locale.TR.ToString(),\n\tConversationId = \"123456789\",\n\tPrice = \"1\",\n\tPaidPrice = \"1.2\",\n\tCurrency = Currency.TRY.ToString(),\n\tInstallment = 1,\n\tBasketId = \"B67832\",\n\tPaymentChannel = PaymentChannel.WEB.ToString(),\n\tPaymentGroup = PaymentGroup.PRODUCT.ToString()\n};\n\nvar paymentCard = new PaymentCard\n{\n\tCardHolderName = \"John Doe\",\n\tCardNumber = \"5528790000000008\",\n\tExpireMonth = \"12\",\n\tExpireYear = \"2030\",\n\tCvc = \"123\",\n\tRegisterCard = 0\n};\n\nrequest.PaymentCard = paymentCard;\n\nvar buyer = new Buyer\n{\n\tId = \"BY789\",\n\tName = \"John\",\n\tSurname = \"Doe\",\n\tGsmNumber = \"+905350000000\",\n\tEmail = \"email@email.com\",\n\tIdentityNumber = \"74300864791\",\n\tLastLoginDate = \"2015-10-05 12:43:35\",\n\tRegistrationDate = \"2013-04-21 15:12:09\",\n\tRegistrationAddress = \"Nidakule Göztepe, Merdivenköy Mah. Bora Sok. No:1\",\n\tIp = \"85.34.78.112\",\n\tCity = \"Istanbul\",\n\tCountry = \"Turkey\",\n\tZipCode = \"34732\"\n};\n\nrequest.Buyer = buyer;\n\nvar shippingAddress = new Address\n{\n\tContactName = \"Jane Doe\",\n\tCity = \"Istanbul\",\n\tCountry = \"Turkey\",\n\tDescription = \"Nidakule Göztepe, Merdivenköy Mah. Bora Sok. No:1\",\n\tZipCode = \"34742\"\n};\n\nrequest.ShippingAddress = shippingAddress;\n\nvar billingAddress = new Address\n{\n\tContactName = \"Jane Doe\",\n\tCity = \"Istanbul\",\n\tCountry = \"Turkey\",\n\tDescription = \"Nidakule Göztepe, Merdivenköy Mah. Bora Sok. No:1\",\n\tZipCode = \"34742\"\n};\n\nrequest.BillingAddress = billingAddress;\n\nvar firstBasketItem = new BasketItem\n{\n\tId = \"BI101\",\n\tName = \"Binocular\",\n\tCategory1 = \"Collectibles\",\n\tCategory2 = \"Accessories\",\n\tItemType = BasketItemType.PHYSICAL.ToString(),\n\tPrice = \"0.3\"\n};\n\nvar secondBasketItem = new BasketItem\n{\n\tId = \"BI102\",\n\tName = \"Game code\",\n\tCategory1 = \"Game\",\n\tCategory2 = \"Online Game Items\",\n\tItemType = BasketItemType.VIRTUAL.ToString(),\n\tPrice = \"0.5\"\n};\n\nvar thirdBasketItem = new BasketItem\n{\n\tId = \"BI103\",\n\tName = \"Usb\",\n\tCategory1 = \"Electronics\",\n\tCategory2 = \"Usb / Cable\",\n\tItemType = BasketItemType.PHYSICAL.ToString(),\n\tPrice = \"0.2\"\n};\n\nvar basketItems = new List\u003cBasketItem\u003e\n{\n\tfirstBasketItem,\n\tsecondBasketItem,\n\tthirdBasketItem\n};\n\nrequest.BasketItems = basketItems;\n\nPayment payment = await Payment.CreateAsync(request, options);\n```\nSee other samples under Iyzipay.Samples project.\n\n# Testing\n\nYou can run particular sample by passing your credential info to \"Iyzipay.Samples/Sample.cs\"\n\nYou can execute `dotnet test ./Iyzipay.Tests -c Release` project in order to run unit tests. Or use one of the `build.sh`, `build.cmd` or `build.ps1`\n\n### Mock test cards\n\nTest cards that can be used to simulate a *successful* payment:\n\nCard Number      | Bank                       | Card Type\n-----------      | ----                       | ---------\n5890040000000016 | Akbank                     | Master Card (Debit)  \n5526080000000006 | Akbank                     | Master Card (Credit)  \n4766620000000001 | Denizbank                  | Visa (Debit)  \n4603450000000000 | Denizbank                  | Visa (Credit)\n4729150000000005 | Denizbank Bonus            | Visa (Credit)  \n4987490000000002 | Finansbank                 | Visa (Debit)  \n5311570000000005 | Finansbank                 | Master Card (Credit)  \n9792020000000001 | Finansbank                 | Troy (Debit)  \n9792030000000000 | Finansbank                 | Troy (Credit)  \n5170410000000004 | Garanti Bankası            | Master Card (Debit)  \n5400360000000003 | Garanti Bankası            | Master Card (Credit)  \n374427000000003  | Garanti Bankası            | American Express  \n4475050000000003 | Halkbank                   | Visa (Debit)  \n5528790000000008 | Halkbank                   | Master Card (Credit)  \n4059030000000009 | HSBC Bank                  | Visa (Debit)  \n5504720000000003 | HSBC Bank                  | Master Card (Credit)  \n5892830000000000 | Türkiye İş Bankası         | Master Card (Debit)  \n4543590000000006 | Türkiye İş Bankası         | Visa (Credit)  \n4910050000000006 | Vakıfbank                  | Visa (Debit)  \n4157920000000002 | Vakıfbank                  | Visa (Credit)  \n5168880000000002 | Yapı ve Kredi Bankası      | Master Card (Debit)  \n5451030000000000 | Yapı ve Kredi Bankası      | Master Card (Credit)  \n\n*Cross border* test cards:\n\nCard Number      | Country\n-----------      | -------\n4054180000000007 | Non-Turkish (Debit)\n5400010000000004 | Non-Turkish (Credit)  \n6221060000000004 | Iran  \n\nTest cards to get specific *error* codes:\n\nCard Number       | Description\n-----------       | -----------\n5406670000000009  | Success but cannot be cancelled, refund or post auth\n4111111111111129  | Not sufficient funds\n4129111111111111  | Do not honour\n4128111111111112  | Invalid transaction\n4127111111111113  | Lost card\n4126111111111114  | Stolen card\n4125111111111115  | Expired card\n4124111111111116  | Invalid cvc2\n4123111111111117  | Not permitted to card holder\n4122111111111118  | Not permitted to terminal\n4121111111111119  | Fraud suspect\n4120111111111110  | Pickup card\n4130111111111118  | General error\n4131111111111117  | Success but mdStatus is 0\n4141111111111115  | Success but mdStatus is 4\n4151111111111112  | 3dsecure initialize failed\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farmutcom%2Fiyzipay-dotnet-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farmutcom%2Fiyzipay-dotnet-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farmutcom%2Fiyzipay-dotnet-client/lists"}