dotcreative.paymentcenter 1.0.0

Suggested Alternatives

DotCreative.Services.PaymentCenter.Core

Additional Details

Este projeto foi aprimorado para uma versão melhor e mais estável.

The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package dotcreative.paymentcenter --version 1.0.0                
NuGet\Install-Package dotcreative.paymentcenter -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="dotcreative.paymentcenter" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add dotcreative.paymentcenter --version 1.0.0                
#r "nuget: dotcreative.paymentcenter, 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 dotcreative.paymentcenter as a Cake Addin
#addin nuget:?package=dotcreative.paymentcenter&version=1.0.0

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

Descrição

O objeitvo é prover uma infraestrutura de integração entre sua aplicação e diversas plataformas de pagamento. Atualmente integrada:

  • Criação de boletos do banco Bradesco

Exemplo de utilização (Banco Bradesco)

    IName nameToPayer = new NamePF("PrimeiroNome", "SegundoNome"); // Pagador
    Address addressToPayer = new Address("Nome da Rua", "000", "Nome do Bairro", "Nome da Cidade", "UF", "00.000-000", "Complemento");
    IDocument documentToPayer = new DocumentPF("000.000.000-00");

    IPerson payer = new Person(nameToPayer, addressToPayer, documentToPayer, "email@dominio.com.br");

    IName nameToReceiver = new NamePJ("Nome da empresa recebedora"); // Recebedor
    Address addressToReceiver = new Address("Nome da Rua", "000", "Nome do Bairro", "Nome da Cidade", "UF", "00.000-000", "Complemento");
    IDocument documentToReceiver = new DocumentPJ("999999999888822");
    IPerson receiver = new Person(nameToReceiver, addressToReceiver, documentToReceiver, "email@empresa.com.br");

    IAccountDataForBank accountData = new AccountDataForBank(0123, 5678, 0); // agência, conta e dígito // Plataforma de pagamento
    IPaymentData paymentData = new PaymentData("Plano de saúde", 10000, DateTime.Now, DateTime.Now);

    Bradesco bradesco = new Bradesco(payer, receiver, accountData, paymentData)
        .AddCertificate(@"C:\Users\SeuNome\Documents\Projetos\ecnpj.pfx", "senhaDoCertificado") // adiciona o certificado digital no formato PFX
        .SetEndpoint(EEnvironment.Development) // Informa o ambiente de desenvolvimento
        .Prepare("1", "2", "3"); // Parâmetros adicionais: (1) tipo de operação; (2) espécie título e (3) IOF (taxa) respectivamente

    string resultFromBradesco = bradesco.Execute(); // executa a criação do boleto

    Console.WriteLine("------ JSON gerado. ------");
    Console.WriteLine(bradesco.GetJsonData());
    File.WriteAllTextAsync(@"C:\Users\Paulo\Documents\Projetos\DadosParaOBradesco.json", bradesco.GetJsonData());

    Console.WriteLine("------ Inicia a transação com o banco. ------");
    Console.WriteLine(resultFromBradesco);
    File.WriteAllTextAsync(@"C:\Users\Paulo\Documents\Projetos\RetornoBradesco.xml", resultFromBradesco);

    Console.WriteLine("------ Transação com o banco finalizada. ------");
Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  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. 
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

Nesta versão:
- integração com Bradesco