Skip to content

Privatbank LiqPay protocol on dotnet core and .net framework

Notifications You must be signed in to change notification settings

polischuk/LiqPay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LiqPay

Privatbank LiqPay protocol on dotnet core and .net framework

Usage

Install from the package manager console:

    PM> Install-Package PrivatBank.LiqPay 

P2PLiqPayProtocol

P2P

var protocol = new P2PLiqPayProtocol("your_private_key", "your_private_key");
var result = protocol.P2P(new P2PLiqPayRequestModel
            {
                Amount = 1,
                OrderId = Guid.NewGuid().ToString(),
                Card = "5398177075648209",
                Currency = Currency.UAH,
                Action = "p2p",
                CardExpMonth = "03",
                CardExpYear = "21",
                CardCvv = "111",
                ReceiverCard = "4485920066083382",
                Version = 3,
                Description = "test",
                Sandbox = "1"
            });

P2P credit

  var orderId = Guid.NewGuid().ToString();
  var protocol = new P2PLiqPayProtocol("your_private_key", "your_private_key");
  var request = new P2PCreditLiqPayRequestModel()
            {
                Amount = 1,
                Currency = Currency.UAH,
                Description = "test",
                OrderId = orderId,
                ReceiverCard = "5398177075648209",
                Sandbox = "1",
                Ip = "127.0.0.1"
            };
  var result = protocol.P2PCredit(request);

About

Privatbank LiqPay protocol on dotnet core and .net framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages