Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jtone123/liqpay-dotnet

liqpay.ua API SDK for .Net
https://github.com/jtone123/liqpay-dotnet

liqpay liqpay-extension uah

Last synced: about 1 month ago
JSON representation

liqpay.ua API SDK for .Net

Awesome Lists containing this project

README

        

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

API Documentation [in Ukrainian](https://www.liqpay.ua/doc) and [in English](https://www.liqpay.ua/en/doc)

Nuget
----------------------

[![NuGet][lp-img]][lp-link]

[![GitHub Feed][ghf-img]][ghf-link]

Usage
----------------------

```csharp
// send invoce by email
var invoiceRequest = new LiqPayRequest
{
Email = "[email protected]",
Amount = 200,
Currency = "USD",
OrderId = "order_id",
Action = LiqPayRequestAction.InvoiceSend,
Language = LiqPayRequestLanguage.EN,
Goods = new List {
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

[lp-img]: https://img.shields.io/badge/nuget-v1.0.1-blue.svg
[ghf-img]: https://img.shields.io/badge/github_feed-v1.0.1-green.svg

[lp-link]: https://www.nuget.org/packages/LiqPay/
[ghf-link]: https://github.com/JTOne123/liqpay-dotnet/packages