{"id":20545851,"url":"https://github.com/xin9le/paidysdk","last_synced_at":"2025-04-14T10:13:40.248Z","repository":{"id":52543238,"uuid":"329361131","full_name":"xin9le/PaidySDK","owner":"xin9le","description":"Paidy SDK for .NET","archived":false,"fork":false,"pushed_at":"2022-06-30T18:09:35.000Z","size":128,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-14T10:13:35.773Z","etag":null,"topics":["csharp","dotnet","paidy","payments","sdk"],"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/xin9le.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":"2021-01-13T16:07:30.000Z","updated_at":"2022-09-13T05:53:05.000Z","dependencies_parsed_at":"2022-09-10T11:50:40.128Z","dependency_job_id":null,"html_url":"https://github.com/xin9le/PaidySDK","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xin9le%2FPaidySDK","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xin9le%2FPaidySDK/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xin9le%2FPaidySDK/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xin9le%2FPaidySDK/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xin9le","download_url":"https://codeload.github.com/xin9le/PaidySDK/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248860167,"owners_count":21173342,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","paidy","payments","sdk"],"created_at":"2024-11-16T01:53:33.182Z","updated_at":"2025-04-14T10:13:40.223Z","avatar_url":"https://github.com/xin9le.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Banner](https://download.paidy.com/Checkout_728x90.png)\n\n\n# PaidySDK\nPaidySDK is the simple and thin Paidy API wrapper library for .NET that supports following features.\n\n- [Payments API](https://paidy.com/docs/en/payments.html#paidyapi_pay)\n- [Tokens API](https://paidy.com/docs/en/tokens.html#paidyapi_tok)\n- [Webhooks](https://paidy.com/docs/en/webhook.html)\n\n\n[![Releases](https://img.shields.io/github/release/xin9le/PaidySDK.svg)](https://github.com/xin9le/PaidySDK/releases)\n\n\n\n# Support platforms\n\n- .NET Framework 4.6.1+\n- .NET Standard 2.0+\n- .NET 5.0+\n\n\n\n# How to use\n\n## API\n\nAPI wrapper services are provided via `Microsoft.Extensions.DependencyInjection`. \n\n\n1. `.AddPaidy();`\n1. Gets API wrapper service instance via DI.\n\n\n```cs\nusing Microsoft.Extensions.DependencyInjection;\nusing Paidy;\n\npublic class Startup\n{\n    public void ConfigureServices(IServiceCollection services)\n    {\n        var options = new PaidyOptions\n        (\n            apiEndpoint: \"https://api.paidy.com\",\n            secretKey: \"sk_...\",\n            apiVersion: null\n        );\n        services.AddPaidy(options);\n    }\n}\n```\n\n```cs\nusing Microsoft.AspNetCore.Mvc;\nusing Paidy.Payments;\nusing Paidy.Tokens;\n\npublic class SampleController : Controller\n{\n    private PaymentService PaymentService { get; }\n    private TokenService TokenService { get; }\n\n    public SampleController(PaymentService paymentService, TokenService tokenService)\n    {\n        this.PaymentService = paymentService;\n        this.TokenService = tokenService;\n    }\n}\n```\n\n\n\n## Webhooks\n\nAllows you to parse the JSON payload that is sent from Paidy webhook easily.\n\n```cs\nvar payload = \"{ Paidy payment webhook payload }\"; \nvar request = PaymentRequest.From(payload);\n```\n\n```cs\nvar payload = \"{ Paidy token webhook payload }\"; \nvar request = TokenRequest.From(payload);\n```\n\n\n\n# Installation\n\nGetting started from downloading [NuGet](https://www.nuget.org/packages/PaidySDK) package.\n\n```\ndotnet add package PaidySDK\n```\n```\nPM\u003e Install-Package PaidySDK\n```\n\n\n\n# Paidy docs\n\n- [Japanese](https://paidy.com/docs/jp/)\n- [English](https://paidy.com/docs/en/)\n\n\n\n# License\n\nThis library is provided under [MIT License](http://opensource.org/licenses/MIT).\n\n\n\n# Author\n\nTakaaki Suzuki (a.k.a [@xin9le](https://twitter.com/xin9le)) is software developer in Japan who awarded Microsoft MVP for Developer Technologies (C#) since July 2012.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxin9le%2Fpaidysdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxin9le%2Fpaidysdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxin9le%2Fpaidysdk/lists"}