{"id":37041161,"url":"https://github.com/matmiranda/picpay-dotnet","last_synced_at":"2026-01-14T04:52:04.494Z","repository":{"id":49969083,"uuid":"168424808","full_name":"matmiranda/picpay-dotnet","owner":"matmiranda","description":"🧩 - picpay api for dotnet","archived":false,"fork":false,"pushed_at":"2023-08-06T04:09:48.000Z","size":76,"stargazers_count":17,"open_issues_count":0,"forks_count":10,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-11-06T19:25:03.366Z","etag":null,"topics":["dotnet","picpay"],"latest_commit_sha":null,"homepage":"https://ecommerce.picpay.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/matmiranda.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}},"created_at":"2019-01-30T22:22:48.000Z","updated_at":"2024-03-02T04:15:37.000Z","dependencies_parsed_at":"2022-07-31T00:47:49.193Z","dependency_job_id":null,"html_url":"https://github.com/matmiranda/picpay-dotnet","commit_stats":null,"previous_names":["matmiranda/picpay-dotnet"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/matmiranda/picpay-dotnet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matmiranda%2Fpicpay-dotnet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matmiranda%2Fpicpay-dotnet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matmiranda%2Fpicpay-dotnet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matmiranda%2Fpicpay-dotnet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matmiranda","download_url":"https://codeload.github.com/matmiranda/picpay-dotnet/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matmiranda%2Fpicpay-dotnet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28409875,"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":["dotnet","picpay"],"created_at":"2026-01-14T04:52:04.074Z","updated_at":"2026-01-14T04:52:04.488Z","avatar_url":"https://github.com/matmiranda.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![License](https://img.shields.io/badge/license-MIT-green)](./LICENSE)\n![dotnet status](https://github.com/matmiranda/picpay-dotnet/actions/workflows/dotnet.yml/badge.svg?event=push)\n[![NuGet Badge](https://buildstats.info/nuget/PicPay)](https://www.nuget.org/packages/PicPay)\n\n## Índice - C#\n- [Implementações .NET com suporte](#implementações-net-com-suporte)\n- [Instalação da biblioteca](#instalação-da-biblioteca)\n- [Configurando e Autenticando o ambiente](#configurando-e-autenticando-o-ambiente)\n- Pagamento\n  - [Criar pedido para pagamento](#criar-pedido-para-pagamento)\n  - [Capturar pagamento](#capturar-pagamento)\n  - [Cancelar pedido de pagamento](#cancelar-pedido-de-pagamento)\n  - [Consultar Status do pedido](#consultar-status-do-pedido)\n\n## Implementações .NET com suporte\nA biblioteca foi feito em **[.NET Standard 2.1](https://learn.microsoft.com/pt-br/dotnet/standard/net-standard?tabs=net-standard-2-1) e  VS2022**\n\n## Instalação da biblioteca\nExecute o comando para instalar via [NuGet](https://www.nuget.org/packages/PicPay/):\n\n```.net cli\n\u003e dotnet add package PicPay\n```\n\n## Configurando e Autenticando o ambiente\n```C#\nvar config = new PicPayConfig\n{\n    BaseUrl = BaseUrl.ProductionEcommerce,\n    Token = \"your-token\"\n};\n\nvar client = new PicPayClient(config);\n```\nPara mais informação: [API Refence](https://picpay.github.io/picpay-docs-digital-payments/checkout/resources/api-reference)\n\n## Criar pedido para pagamento\n```C#\nvar body = new PaymentRequest\n{\n    ReferenceId = \"102030\",\n    CallbackUrl = \"http://www.sualoja.com.br/callback\",\n    ReturnUrl = \"http://www.sualoja.com.br/cliente/pedido/102030\",\n    Value = 20.51M,\n    Buyer = new Buyer\n    {\n        FirstName = \"João\",\n        LastName = \"Da Silva\",\n        Document = \"123.456.789-10\",\n        Email = \"test@picpay.com\",\n        Phone = \"+55 27 12345-6789\"\n    }\n};\n\nvar response = await client.Payment.CreateAsync(body);\n```\n\n## Capturar pagamento\n```C#\nvar body = new PaymentRequest\n{\n    Amount= 12.04M\n};\n\nvar response = await client.Payment.CaptureAsync(body, \"102030\");\n```\n\n## Cancelar pedido de pagamento\n```C#\nvar body = new PaymentRequest\n{\n    AuthorizationId = \"555008cef7f321d00ef236333\",\n    Amount= 50.05M\n};\n\nvar referenceId = \"102030\";\n\nvar response = await client.Payment.CancelAsync(body, referenceId);\n```\n\n## Consultar Status do pedido\n```C#\nvar referenceId = \"102030\";\n\nvar response = await client.Payment.StatusAsync(referenceId);\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatmiranda%2Fpicpay-dotnet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatmiranda%2Fpicpay-dotnet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatmiranda%2Fpicpay-dotnet/lists"}