webpago.payment 1.0.2

WebPago Payment

plugin para facilitar a integração com nossos ambietes de pagamentos

There is a newer version of this package available.
See the version list below for details.
Install-Package webpago.payment -Version 1.0.2
dotnet add package webpago.payment --version 1.0.2
<PackageReference Include="webpago.payment" Version="1.0.2">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add webpago.payment --version 1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: webpago.payment, 1.0.2"
#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 webpago.payment as a Cake Addin
#addin nuget:?package=webpago.payment&version=1.0.2

// Install webpago.payment as a Cake Tool
#tool nuget:?package=webpago.payment&version=1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

WEBPAGO PAYMENT

DEPENDENCIAS

    Newtonsoft.Json >= 12.0.3
    CreditCardValidator >= 2.0.0

INSTALL

    Install-Package webpago.payment

Boleto

Emitir Boleto

   x-ci = chave de integração
   clienteId = chave do cliente
   empresaid = chave da filial do processamento
   producao = status em produção ou homolocação sendo true produção e false homologação
   
   var wp = new Wp(x-ci, clienteId, empresaid, producao);
   
   var boleto = new Boleto("Boleto teste", 50.0, "15/05/2020", "Rodrigo Paiva", "111.111.111-11", "(66) 99629-7955", "suporte@w2rsolucoes.com.br", "78556-992", "bairro", 98, "rua", "Sinop", "MT");
   
   var bol = wp.Boleto(boleto);
    
   

LISTAR BOLETOS

     var wp = new Wp(x-ci, clienteId, empresaid, producao);
      var boletos = wp.GetAll("15/05/2020"), "15/05/2021");
      foreach (var result in boletos)
      {
        Console.WriteLine($"{result.LinhaDigitavel}");
      }

Get Boleto

HASH
      var boleto = wp.GetBoletoHash(Hash);
      Console.WriteLine($"{boleto.LinhaDigitavel}");
NÚMERO PEDIDO
       var boleto = wp.GetBoletoNumeroPedido(NumeroPedido);
      Console.WriteLine($"{boleto.LinhaDigitavel}");

CANCELAR

HASH
      if (wp.CancelarHash(Hash))
      {
        Console.WriteLine("Cancelado com sucesso");
      }
NÚMERO PEDIDO
      if (wp.CancelarNumeroPedido(NumeroPedido))
      {
        Console.WriteLine("Cancelado com sucesso");
      }

CARTÃO

CREDITO

     var card = new Cartao("teste cartao nuget", "5407 2836 5597 5290", 10, 2021, "111.111.111.11, "jose joao", "123", 35, 2, "João da silva", "111.111.11-11", "suporte@webpago.com.br", "(66) 9999-6699", "jd 22", "teste", "78556722", "Sinop", "MT", null);
      var _card = wp.ProcessarPagamento(card);
      Console.WriteLine($"{_card.NumeroCartao}");

LISTAR TITULOS

     var results = wp.GetCardAll("15/05/2020"), "15/05/2021");
      foreach (var result in results)
      {
        Console.WriteLine($"{result.Tid}");
      }

GET TRANSAÇÃO

TID
     var card = wp.GetCardTid(Tid);
      Console.WriteLine(card.Tid);
ID
      var card = wp.GetCardId(Id);
      Console.WriteLine(card.Tid);

CANCELAR

ID
     if (wp.CancelarCardId(Id))
      {
        Console.WriteLine("Cancelado com sucesso");
      }
TID
     if (wp.CancelarCardTid(Tid))
      {
        Console.WriteLine("Cancelado com sucesso");
      }

WEBPAGO PAYMENT

DEPENDENCIAS

    Newtonsoft.Json >= 12.0.3
    CreditCardValidator >= 2.0.0

INSTALL

    Install-Package webpago.payment

Boleto

Emitir Boleto

   x-ci = chave de integração
   clienteId = chave do cliente
   empresaid = chave da filial do processamento
   producao = status em produção ou homolocação sendo true produção e false homologação
   
   var wp = new Wp(x-ci, clienteId, empresaid, producao);
   
   var boleto = new Boleto("Boleto teste", 50.0, "15/05/2020", "Rodrigo Paiva", "111.111.111-11", "(66) 99629-7955", "suporte@w2rsolucoes.com.br", "78556-992", "bairro", 98, "rua", "Sinop", "MT");
   
   var bol = wp.Boleto(boleto);
    
   

LISTAR BOLETOS

     var wp = new Wp(x-ci, clienteId, empresaid, producao);
      var boletos = wp.GetAll("15/05/2020"), "15/05/2021");
      foreach (var result in boletos)
      {
        Console.WriteLine($"{result.LinhaDigitavel}");
      }

Get Boleto

HASH
      var boleto = wp.GetBoletoHash(Hash);
      Console.WriteLine($"{boleto.LinhaDigitavel}");
NÚMERO PEDIDO
       var boleto = wp.GetBoletoNumeroPedido(NumeroPedido);
      Console.WriteLine($"{boleto.LinhaDigitavel}");

CANCELAR

HASH
      if (wp.CancelarHash(Hash))
      {
        Console.WriteLine("Cancelado com sucesso");
      }
NÚMERO PEDIDO
      if (wp.CancelarNumeroPedido(NumeroPedido))
      {
        Console.WriteLine("Cancelado com sucesso");
      }

CARTÃO

CREDITO

     var card = new Cartao("teste cartao nuget", "5407 2836 5597 5290", 10, 2021, "111.111.111.11, "jose joao", "123", 35, 2, "João da silva", "111.111.11-11", "suporte@webpago.com.br", "(66) 9999-6699", "jd 22", "teste", "78556722", "Sinop", "MT", null);
      var _card = wp.ProcessarPagamento(card);
      Console.WriteLine($"{_card.NumeroCartao}");

LISTAR TITULOS

     var results = wp.GetCardAll("15/05/2020"), "15/05/2021");
      foreach (var result in results)
      {
        Console.WriteLine($"{result.Tid}");
      }

GET TRANSAÇÃO

TID
     var card = wp.GetCardTid(Tid);
      Console.WriteLine(card.Tid);
ID
      var card = wp.GetCardId(Id);
      Console.WriteLine(card.Tid);

CANCELAR

ID
     if (wp.CancelarCardId(Id))
      {
        Console.WriteLine("Cancelado com sucesso");
      }
TID
     if (wp.CancelarCardTid(Tid))
      {
        Console.WriteLine("Cancelado com sucesso");
      }

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.14 161 11/11/2020
1.0.13 159 10/21/2020
1.0.12 123 10/19/2020
1.0.11 270 5/23/2020
1.0.10 226 5/23/2020
1.0.9 165 5/20/2020
1.0.8 191 5/17/2020
1.0.7 223 5/17/2020
1.0.6 217 5/17/2020
1.0.5 187 5/16/2020
1.0.4 183 5/15/2020
1.0.3 195 5/15/2020
1.0.2 162 5/14/2020
1.0.1 156 5/14/2020
1.0.0 149 5/13/2020
Show less