EfiPay 2.0.0

dotnet add package EfiPay --version 2.0.0                
NuGet\Install-Package EfiPay -Version 2.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="EfiPay" Version="2.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EfiPay --version 2.0.0                
#r "nuget: EfiPay, 2.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 EfiPay as a Cake Addin
#addin nuget:?package=EfiPay&version=2.0.0

// Install EfiPay as a Cake Tool
#tool nuget:?package=EfiPay&version=2.0.0                

sdk-dotnet-apis-efi

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

Installation

From Visual Studio package manager:

PM> Install-Package EfiPay -Version 2.0.0

From .NET Cli:

> dotnet add package EfiPay --version 2.0.0

Tested with

.NET 8.0

Basic usage

using Efipay;
...
dynamic efi = new EfiPay("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 = efi.PixCreateImmediateCharge(null, body);
Console.WriteLine(response);

Examples

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

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

Additional documentation

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

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/efipay/sdk-dotnet-apis-efi. 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 net8.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on EfiPay:

Package Downloads
AppTemplate.Payment.Subscriptions.Efi

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.0.0 209 11/13/2024
1.0.3 3,232 12/6/2023
1.0.2 327 10/10/2023
1.0.1 406 8/7/2023