Skip to content

JTOne123/liqpay-dotnet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

liqpay.ua API SDK for .Net/C# [.Net Standard 2.0]

API Documentation in Ukrainian and in English

Nuget

NuGet

GitHub Feed

Usage

// send invoce by email
var invoiceRequest = new LiqPayRequest
{
    Email = "email@example.com",
    Amount = 200,
    Currency = "USD",
    OrderId = "order_id",
    Action = LiqPayRequestAction.InvoiceSend,
    Language = LiqPayRequestLanguage.EN,
    Goods = new List<LiqPayRequestGoods> {
        new LiqPayRequestGoods {
            Amount = 100,
            Count = 2,
            Unit = "pcs.",
            Name = "phone"
        }
    }
};

var liqPayClient = new LiqPayClient("publicApiKey", "priveteApiKEy");
//liqPayClient.IsCnbSandbox = true;
var response = await liqPayClient.RequestAsync("request", invoiceRequest);

Buy Me A Coffee