{"id":37045041,"url":"https://github.com/paytrail/paytrail-dotnet-sdk","last_synced_at":"2026-01-14T05:12:25.327Z","repository":{"id":163841091,"uuid":"611206130","full_name":"paytrail/paytrail-dotnet-sdk","owner":"paytrail","description":"Paytrail .NET SDK","archived":false,"fork":false,"pushed_at":"2025-05-26T10:17:57.000Z","size":401,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-27T10:52:42.266Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/paytrail.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2023-03-08T10:45:44.000Z","updated_at":"2025-05-26T10:16:17.000Z","dependencies_parsed_at":"2023-10-01T14:51:16.748Z","dependency_job_id":"63061253-2c20-4d93-9170-02c9598dadcb","html_url":"https://github.com/paytrail/paytrail-dotnet-sdk","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/paytrail/paytrail-dotnet-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paytrail%2Fpaytrail-dotnet-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paytrail%2Fpaytrail-dotnet-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paytrail%2Fpaytrail-dotnet-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paytrail%2Fpaytrail-dotnet-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paytrail","download_url":"https://codeload.github.com/paytrail/paytrail-dotnet-sdk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paytrail%2Fpaytrail-dotnet-sdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28410309,"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":[],"created_at":"2026-01-14T05:12:24.676Z","updated_at":"2026-01-14T05:12:25.321Z","avatar_url":"https://github.com/paytrail.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Paytrail .NET SDK\n\n.NET Software Development Kit for [Paytrail](https://www.paytrail.com/) payment service\n\n## Paytrail Payment Service\n\nPaytrail is a payment gateway that offer 20+ payment methods for finish customers.\n\nThe payment gateway provides all the popular payment methods with one simple integration. The provided payment methods include, but are not limited to, credit cards, online banking and mobile payments.\n\nTo use the payment service, you need to sign up for a Paytrai account. Transactio fees will be charged for every transaction. Transaction cost may vary from merchant to merchant, based on what is agreed upon with Paytrail when negotiating your contract. For more informationm and registration, please visit our [website](https://www.paytrail.com/) or contact (asiakaspalvelu@paytrail.com) directly.\n\n## Requirements\n\n### General requirements\n\n- .NET and .NET Core 2.0 or later\n- .NET Framework 4.6.1 or later\n\n### Development requirements\n\n- [XUnit](https://xunit.net/) - community-focused unit testing tool for the .NET\n\n## Installation\n\nInstall with Nuget Package Management\nInstall with .NET Core CLI\n\n```\nNuget\\Install-Package Paytrail-dotnet-sdk -Version 1.0.2\n```\n\nInstall with Package Manager Console`\n\n```\ndotnet add package Paytrail-dotnet-sdk --version 1.0.2\n```\n\n## Usage\n\n```c#\nusing Newtonsoft.Json;\nusing Paytrail_dotnet_sdk;\nusing Paytrail_dotnet_sdk.Model.Request;\nusing Paytrail_dotnet_sdk.Model.Request.RequestModels;\nusing Paytrail_dotnet_sdk.Model.Response;\n\nclass Program\n{\n    static void Main()\n    {\n        PaytrailClient payTrail = new PaytrailClient(\"375917\", \"SAIPPUAKAUPPIAS\", \"xxx\");\n\n        GetPaymentProvidersRequest payload = new GetPaymentProvidersRequest\n        {\n            amount = 1000,\n            groups = new List\u003cPaymentMethodGroup\u003e()\n            {\n                PaymentMethodGroup.creditcard,\n            }\n        };\n\n        GetPaymentProvidersResponse res = payTrail.GetPaymentProviders(payload);\n\n        Console.WriteLine(JsonConvert.SerializeObject(res));\n    }\n}\n```\n\n## Folder contents \u0026 descriptions\n\n| Folder/File                           | Content/Description                                |\n| ------------------------------------- | -------------------------------------------------- |\n| Paytrail-dotnet-sdk/Interface         | Interface for all the related classes to implement |\n| Paytrail-dotnet-sdk/Model             | Model classes and functions                        |\n| Paytrail-dotnet-sdk/Model/Request     | Request model and functions                        |\n| Paytrail-dotnet-sdk/Model/Response    | Response model and functions                       |\n| Paytrail-dotnet-sdk/Util              | Utility/Enum classes and functions                 |\n| Paytrail-dotnet-sdk/Paytrail.cs       | Init paytrail service                              |\n| Paytrail-dotnet-sdk/PaytrailClient.cs | Paytrail client class and functions                |\n| Paytrail-dotnet-sdk.UnitTest          | .NET unit test                                     |\n\n## Basic fucntionalities\n\nThe Paytrail-dotnet-sdk supports some functionalities of the [Paytrail Payment API](https://docs.paytrail.com/#/).\n\nSome of the key features are:\n\n### Payments and refunds\n\n- [Creating payment request](https://docs.paytrail.com/#/?id=create)\n- [Creating payment status request](https://docs.paytrail.com/#/?id=get)\n- [Creating refund request](https://docs.paytrail.com/#/?id=refund)\n\n### Shop-in-shop\n\n- Creating Shop-in-shop payment request\n\n### Token payments\n\n- [Pay and add card](https://docs.paytrail.com/#/?id=pay-and-add-card)\n\n## Methods\n\n| Method                              | Description                                                   |\n| ----------------------------------- | ------------------------------------------------------------- |\n| CreatePayment()                     | Create payment                                                |\n| CreateShopInShopPayment()           | Create SiS payment                                            |\n| GetPaymentInfo()                    | Request payment status                                        |\n| RefundPayment()                     | Create refund request                                         |\n| PayAndAddCardRequest()              | Combine a payment and adding a new card with a single request |\n| GetPaymentProviders()               | Get a list of payment providers                               |\n| GetGroupedPaymentProviders()        | Returns an array of grouped payment providers fields          |\n| EmailRefund()                       | Create email refund                                           |\n| CreateGetTokenRequest()             | Request card token                                            |\n| GetSettlements()                    | Request settlements                                           |\n| RequestPaymentReport()              | Request payment report                                        |\n| CreateMitPaymentCharge()            | Create MiT payment                                            |\n| CreateMitPaymentAuthorizationHold() | Create MiT authorization hold                                 |\n| CreateCitPaymentCharge()            | Create CiT payment                                            |\n| CreateCitPaymentAuthorizationHold() | Create CiT authorization hold                                 |\n| CreateMitPaymentCommit()            | Commit MiT authorization hold                                 |\n| CreateCitPaymentCommit()            | Commit CiT authorization hold                                 |\n| RevertPaymentAuthorizationHold()    | Revert existing Mit or CiT authorization hold                 |\n| RequestPaymentReportBySettlement()  | Request payment report by settlement ID                       |\n| CreateAddCardFormRequest()          | Save card details                                             |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaytrail%2Fpaytrail-dotnet-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpaytrail%2Fpaytrail-dotnet-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaytrail%2Fpaytrail-dotnet-sdk/lists"}