Gerencianet.NETCore.SDK 2.0.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package Gerencianet.NETCore.SDK --version 2.0.2
NuGet\Install-Package Gerencianet.NETCore.SDK -Version 2.0.2
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="Gerencianet.NETCore.SDK" Version="2.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Gerencianet.NETCore.SDK --version 2.0.2
#r "nuget: Gerencianet.NETCore.SDK, 2.0.2"
#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 Gerencianet.NETCore.SDK as a Cake Addin
#addin nuget:?package=Gerencianet.NETCore.SDK&version=2.0.2

// Install Gerencianet.NETCore.SDK as a Cake Tool
#tool nuget:?package=Gerencianet.NETCore.SDK&version=2.0.2

gn-api-sdk-dotnet-core

A .NET Core library for integration of your application with the payment services provided by Gerencianet.

Installation

From Visual Studio package manager:

PM> Install-Package Gerencianet.NETCore.SDK -Version 2.0.1

From .NET Cli:

> dotnet add package Gerencianet.NETCore.SDK --version 2.0.1

Tested with

.NET 5.0

Basic usage

using Gerencianet.NETCore.SDK;
...
dynamic endpoints = new Endpoints("client_id", "client_secret", true, "production.p12");
            
var body = new 
{
    calendario = new {
        expiracao = 3600
    },
    devedor = new {
        cpf = "12345678909",
        nome = "Francisco da Silva"
    },
    valor = new {
        original = "1.45"
    },
    chave = "71cdf9ba-c695-4e3c-b010-abb521a3f1be",
    solicitacaoPagador = "Informe o número ou identificador do pedido."
};

var response = endpoints.PixCreateImmediateCharge(null, body);
Console.WriteLine(response);

Examples

You can run the examples contained in the project Gerencianet.NETCore.SDK.Examples by uncommenting the lines in Program.cs file.

Just remember to set the correct credentials inside Gerencianet.NETCore.SDK.Examples/credentials.json before running.

Additional documentation

The full documentation with all available endpoints is in https://dev.gerencianet.com.br/.

Changelog

CHANGELOG

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/gerencianet/gn-api-sdk-dotnet-core. This project is intended to be a safe, welcoming space for collaboration.

License

The library is available as open source under the terms of the MIT License.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.1 is compatible.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 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
3.0.0 5,139 8/10/2022
2.0.2 4,143 7/28/2021
2.0.1 2,634 5/13/2021