AbacatePay 1.0.0

dotnet add package AbacatePay --version 1.0.0                
NuGet\Install-Package AbacatePay -Version 1.0.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="AbacatePay" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AbacatePay --version 1.0.0                
#r "nuget: AbacatePay, 1.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install AbacatePay as a Cake Addin
#addin nuget:?package=AbacatePay&version=1.0.0

// Install AbacatePay as a Cake Tool
#tool nuget:?package=AbacatePay&version=1.0.0                

abacatepay-dotnet-sdk

Uma biblioteca .NET para integração de seu sistema com o serviço de pagamento da AbacatePay inicialmente desenvolvida por Lucas Beliene.

Instalação

Através da .NET Cli:

> dotnet add package AbacatePay --version 1.0.0

Testado com

.NET 9.0

Uso básico

using Abacatepay;
...
dynamic abacate = new AbacatePay("apiKey", true);

var body = new 
{
    frequency = "ONE_TIME",
    methods = new[] { "PIX" },
    products = new[]
    {
        new
        {
            externalId = "prod-1234",
            name = "Produto",
            description = "Descrição do produto",
            quantity = 1,
            price = 1000
        }
    },
    returnUrl = "https://example.com/billing",
    completionUrl = "https://example.com/completion",
    customer = new
    {
        name = "Lucas Beliene",
        cellphone = "(22) 0000-0000",
        email = "lucasbeliene@email.com",
        taxId = "123.456.789-01"
    }
};

var response = abacate.PixBillingCreate(null, body);
Console.WriteLine(response);

Exemplos

Você pode rodar e testar alguns exemplos contidos no projeto Examples retirando os comentários das funções no arquivo Program.cs. Lembre-se de colocar suas credenciais dentro de Examples/credentials.json antes de rodar

Documentação adicional

A documentação completa com todos endpoints pode ser encontrada em https://abacatepay.readme.io/reference/oi.

Contribuição

Report de bugs e pull request são bem-vindas, para isso acesse o repositório aqui. Este projeto tem a intenção de ser um espaço seguro para colaboração.

Licença

A biblioteca está disponível como código aberto sob os termos da licença MIT.

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0 108 12/14/2024