Pagseguro.Sdk.RecurringPayment
1.0.0
.NET Core 3.1
Install-Package Pagseguro.Sdk.RecurringPayment -Version 1.0.0
dotnet add package Pagseguro.Sdk.RecurringPayment --version 1.0.0
<PackageReference Include="Pagseguro.Sdk.RecurringPayment" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Pagseguro.Sdk.RecurringPayment --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Pagseguro.Sdk.RecurringPayment, 1.0.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Pagseguro.Sdk.RecurringPayment as a Cake Addin
#addin nuget:?package=Pagseguro.Sdk.RecurringPayment&version=1.0.0
// Install Pagseguro.Sdk.RecurringPayment as a Cake Tool
#tool nuget:?package=Pagseguro.Sdk.RecurringPayment&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Este projeto disponibiliza Wrappers via pacote Nuget das APIs do PagSeguro para desenvolvedores .NET Core
Cada API deverá ter seu pacote correspondente. Atualmente o projeto conta com SDK para as seguintes APIs:
Install
- Package Manager Console (Visual Studio)
Install-Package Pagseguro.Sdk.RecurringPayment
- dotnet cli
dotnet add package Pagseguro.Sdk.RecurringPayment
- Via csproj
<PackageReference Include="Pagseguro.Sdk.RecurringPayment" Version="1.0.0" />
Uso
- Configure o middleware abaixo com as opções desejadas
services.AddRecurringPayment(new PagSeguroOptions()
{
Email = "email_conta",
//caso deseje utilizar a sandbox do pagseguro
SandboxMode = true,
Token = "token_conta",
//Preencher apenas se SandboxMode for true
SandboxBuyerEmail = "c45631988515948156903@sandbox.pagseguro.com.br"
});
- Injete a service desejada no seu construtor
public MinhaService(IPagseguroSessionService pagseguroService)
{
_pagseguroService = pagseguroService;
}
- Consuma a service
var session = await _pagseguroService.NewSession();
- OBS.: Consulte o código para ver as services e seus métodos disponíveis
Product | Versions |
---|---|
.NET | net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows |
.NET Core | netcoreapp3.1 |
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
-
.NETCoreApp 3.1
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 3.1.7)
- Microsoft.Extensions.Options (>= 3.1.7)
- Newtonsoft.Json (>= 12.0.3)
- System.Configuration.ConfigurationManager (>= 5.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.