webpago.payment
1.0.2
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package webpago.payment --version 1.0.2
NuGet\Install-Package webpago.payment -Version 1.0.2
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="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 and Polyglot Notebooks. 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");
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
- CreditCardValidator (>= 2.0.0)
- Newtonsoft.Json (>= 12.0.3)
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 |
---|---|---|
1.0.14 | 542 | 11/11/2020 |
1.0.13 | 441 | 10/21/2020 |
1.0.12 | 441 | 10/19/2020 |
1.0.11 | 567 | 5/23/2020 |
1.0.10 | 508 | 5/23/2020 |
1.0.9 | 470 | 5/20/2020 |
1.0.8 | 482 | 5/17/2020 |
1.0.7 | 504 | 5/17/2020 |
1.0.6 | 505 | 5/17/2020 |
1.0.5 | 491 | 5/16/2020 |
1.0.4 | 479 | 5/15/2020 |
1.0.3 | 480 | 5/15/2020 |
1.0.2 | 426 | 5/14/2020 |
1.0.1 | 418 | 5/14/2020 |
1.0.0 | 431 | 5/13/2020 |