{"id":42684424,"url":"https://github.com/iyzico/iyzipay-dotnet","last_synced_at":"2026-02-18T09:07:41.799Z","repository":{"id":40795009,"uuid":"50664014","full_name":"iyzico/iyzipay-dotnet","owner":"iyzico","description":"iyzipay api .net client","archived":false,"fork":false,"pushed_at":"2026-01-29T10:35:46.000Z","size":848,"stargazers_count":159,"open_issues_count":11,"forks_count":63,"subscribers_count":50,"default_branch":"master","last_synced_at":"2026-01-30T01:29:05.257Z","etag":null,"topics":["client-library","dotnet-library","fintech","iyzico","iyzicoder","iyzipay"],"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/iyzico.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,"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":"2016-01-29T13:28:55.000Z","updated_at":"2026-01-29T10:35:49.000Z","dependencies_parsed_at":"2024-11-15T11:25:38.315Z","dependency_job_id":"232d5373-6c3c-4fca-b51c-830306c559a3","html_url":"https://github.com/iyzico/iyzipay-dotnet","commit_stats":null,"previous_names":[],"tags_count":55,"template":false,"template_full_name":null,"purl":"pkg:github/iyzico/iyzipay-dotnet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iyzico%2Fiyzipay-dotnet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iyzico%2Fiyzipay-dotnet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iyzico%2Fiyzipay-dotnet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iyzico%2Fiyzipay-dotnet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iyzico","download_url":"https://codeload.github.com/iyzico/iyzipay-dotnet/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iyzico%2Fiyzipay-dotnet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29574068,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T08:38:15.585Z","status":"ssl_error","status_checked_at":"2026-02-18T08:38:14.917Z","response_time":162,"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":["client-library","dotnet-library","fintech","iyzico","iyzicoder","iyzipay"],"created_at":"2026-01-29T12:03:41.641Z","updated_at":"2026-02-18T09:07:41.779Z","avatar_url":"https://github.com/iyzico.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# iyzipay-dotnet\n\n[![NuGet](https://img.shields.io/nuget/v/Iyzipay.svg)](https://www.nuget.org/packages/Iyzipay/)\n\nYou can sign up for an iyzico account at https://iyzico.com\n\n# Requirements\nOne of the runtime environment is required from below\n* .NET Framework 4.5\n\n# Installation\n\nFor now you'll need to install following libraries:\n\n* To install Iyzipay, run the following command in the Package Manager Console\n```\nInstall-Package Iyzipay\n```\n Or you can download the latest .dll from:  https://github.com/iyzico/iyzipay-dotnet/releases/latest\n \nFor .NET Framework:\n* Newtonsoft.Json 13.0.2 from http://www.newtonsoft.com/json#\n\nFor .NET Standard 2.1:\n* Newtonsoft.Json 11.0.2 from http://www.newtonsoft.com/json#\n\n\n# Note\n\nFor .Net Framework usage, decimal deserialized to string with trim \"0\" operation from the end by newtonsoft library.\n\n```csharp\n// true for .net 45\nbool isEqual = payment.IyziCommissionRateAmount.Equals(\"0.028875\")\n```\n\nFor .Net Standard usage, decimal deserialized to string without trim operation by newtonsoft library.\n```csharp\n// false for .net standard\nbool isEqual = payment.IyziCommissionRateAmount.Equals(\"0.028875\");\n\n// true for .net standard\nbool isEqual = payment.IyziCommissionRateAmount.Equals(\"0.02887500\");\n```\n\n# Usage\n\n```csharp\nOptions options = new Options();\noptions.ApiKey = \"your api key\";\noptions.SecretKey = \"your secret key\";\noptions.BaseUrl = \"https://sandbox-api.iyzipay.com\";\n\t\t\nCreatePaymentRequest request = new CreatePaymentRequest();\nrequest.Locale = Locale.TR.ToString();\nrequest.ConversationId = \"123456789\";\nrequest.Price = \"1\";\nrequest.PaidPrice = \"1.2\";\nrequest.Currency = Currency.TRY.ToString();\nrequest.Installment = 1;\nrequest.BasketId = \"B67832\";\nrequest.PaymentChannel = PaymentChannel.WEB.ToString();\nrequest.PaymentGroup = PaymentGroup.PRODUCT.ToString();\n\nPaymentCard paymentCard = new PaymentCard();\npaymentCard.CardHolderName = \"John Doe\";\npaymentCard.CardNumber = \"5528790000000008\";\npaymentCard.ExpireMonth = \"12\";\npaymentCard.ExpireYear = \"2030\";\npaymentCard.Cvc = \"123\";\npaymentCard.RegisterCard = 0;\nrequest.PaymentCard = paymentCard;\n\nBuyer buyer = new Buyer();\nbuyer.Id = \"BY789\";\nbuyer.Name = \"John\";\nbuyer.Surname = \"Doe\";\nbuyer.GsmNumber = \"+905350000000\";\nbuyer.Email = \"email@email.com\";\nbuyer.IdentityNumber = \"74300864791\";\nbuyer.LastLoginDate = \"2015-10-05 12:43:35\";\nbuyer.RegistrationDate = \"2013-04-21 15:12:09\";\nbuyer.RegistrationAddress = \"Nidakule Göztepe, Merdivenköy Mah. Bora Sok. No:1\";\nbuyer.Ip = \"85.34.78.112\";\nbuyer.City = \"Istanbul\";\nbuyer.Country = \"Turkey\";\nbuyer.ZipCode = \"34732\";\nrequest.Buyer = buyer;\n\nAddress shippingAddress = new Address();\nshippingAddress.ContactName = \"Jane Doe\";\nshippingAddress.City = \"Istanbul\";\nshippingAddress.Country = \"Turkey\";\nshippingAddress.Description = \"Nidakule Göztepe, Merdivenköy Mah. Bora Sok. No:1\";\nshippingAddress.ZipCode = \"34742\";\nrequest.ShippingAddress = shippingAddress;\n\nAddress billingAddress = new Address();\nbillingAddress.ContactName = \"Jane Doe\";\nbillingAddress.City = \"Istanbul\";\nbillingAddress.Country = \"Turkey\";\nbillingAddress.Description = \"Nidakule Göztepe, Merdivenköy Mah. Bora Sok. No:1\";\nbillingAddress.ZipCode = \"34742\";\nrequest.BillingAddress = billingAddress;\n\nList\u003cBasketItem\u003e basketItems = new List\u003cBasketItem\u003e();\nBasketItem firstBasketItem = new BasketItem();\nfirstBasketItem.Id = \"BI101\";\nfirstBasketItem.Name = \"Binocular\";\nfirstBasketItem.Category1 = \"Collectibles\";\nfirstBasketItem.Category2 = \"Accessories\";\nfirstBasketItem.ItemType = BasketItemType.PHYSICAL.ToString();\nfirstBasketItem.Price = \"0.3\";\nbasketItems.Add(firstBasketItem);\n\nBasketItem secondBasketItem = new BasketItem();\nsecondBasketItem.Id = \"BI102\";\nsecondBasketItem.Name = \"Game code\";\nsecondBasketItem.Category1 = \"Game\";\nsecondBasketItem.Category2 = \"Online Game Items\";\nsecondBasketItem.ItemType = BasketItemType.VIRTUAL.ToString();\nsecondBasketItem.Price = \"0.5\";\nbasketItems.Add(secondBasketItem);\n\nBasketItem thirdBasketItem = new BasketItem();\nthirdBasketItem.Id = \"BI103\";\nthirdBasketItem.Name = \"Usb\";\nthirdBasketItem.Category1 = \"Electronics\";\nthirdBasketItem.Category2 = \"Usb / Cable\";\nthirdBasketItem.ItemType = BasketItemType.PHYSICAL.ToString();\nthirdBasketItem.Price = \"0.2\";\nbasketItems.Add(thirdBasketItem);\nrequest.BasketItems = basketItems;\n\nPayment payment = Payment.Create(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\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)    \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%2Fiyzico%2Fiyzipay-dotnet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiyzico%2Fiyzipay-dotnet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiyzico%2Fiyzipay-dotnet/lists"}