Sansone.Uol.PagSeguro

Package Description


Keywords
License
MIT
Install
Install-Package Sansone.Uol.PagSeguro -Version 1.0.4

Documentation

PagSeguro .NET API

.NET Core Project that consume PagSeguro API that support ILogger and use IHttpClientFactory

Motivation

This project was created to consume a specific PagSeguro Api in a .NET Core Project. That API can create "Boleto" with specific due date D+1 configuration.

Features

  • Create "Boleto" with a D+1 due date.

Informations

Built with:

.NET Core 3.1

Install

Install package using .NET CLI: dotnet add package Sansone.Uol.PagSeguro

Setup

Create a new PagSeguroSettings as follow and pass it to ExtensionMethod from IServiceCollection AddPagSeguro

settings

How to Use

  • Inject IPagSeguroBoletoService in your service. image

  • Pass a new PagSeguroBoletoRequest. image

  • If the request fails, it throws a new PagSeguro Exception with a list of errors from PagSeguro. image