Plisio payment gateway API
- API version: 1.0
- SDK version: 1.0.0
- .NET 4.7.1 or later
- RestSharp - 111.4.1 or later
- Json.NET - 7.0.0 or later
- JsonSubTypes - 1.2.0 or later
The DLLs included in the package may not be the latest version. We recommend using NuGet to obtain the latest version of the packages:
Install-Package RestSharp
Install-Package Newtonsoft.Json
Install-Package JsonSubTypes
NOTE: RestSharp versions greater than 105.1.0 have a bug which causes file uploads to fail. See RestSharp#742
Run the following commands to generate the DLL
cd src/IO.Plisio
dotnet restore
dotnet build
Then include the DLL (under the bin
folder) in the C# project, and use the namespaces:
using IO.Plisio.Api;
using IO.Plisio.Client;
using IO.Plisio.Model;
A .nuspec
is included with the project. You can follow the Nuget quickstart to create and publish packages.
This .nuspec
uses placeholders from the .csproj
, so build the .csproj
directly:
nuget pack -Build -OutputDirectory out IO.Plisio.csproj
Then, publish to a local feed or other host and consume the new package via Nuget as usual.
using System;
using System.Diagnostics;
using IO.Plisio.Api;
using IO.Plisio.Client;
using IO.Plisio.Model;
namespace Example
{
public class Example
{
public void main()
{
// Configure API key authorization: api_key
Configuration.Default.ApiKey.Add("api_key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("api_key", "Bearer");
var apiInstance = new BalanceApi();
var psysCid = psysCid_example; // string | ID column from one of the supported cryptocurrencies supported by Plisio
try
{
// Get cryptocurrency balance
BalanceApiResponseDto result = apiInstance.BalancesPsysCidGet(psysCid);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling BalanceApi.BalancesPsysCidGet: " + e.Message );
}
}
}
}
All URIs are relative to https://plisio.net/api/v1
Class | Method | HTTP request | Description |
---|---|---|---|
BalanceApi | BalancesPsysCidGet | GET /balances/{psys_cid} | Get cryptocurrency balance |
CurrenciesApi | CurrenciesFiatGet | GET /currencies/{fiat} | List of supported cryptocurrencies |
InvoiceApi | InvoicesEmailIdGet | GET /invoices/email/{id} | Invoice details |
InvoiceApi | InvoicesIdGet | GET /invoices/{id} | Invoice details |
InvoiceApi | InvoicesNewGet | GET /invoices/new | Create new invoice |
InvoiceApi | InvoicesSwitchIdGet | GET /invoices/switch/{id} | Invoice details |
ShopApi | ShopsGet | GET /shops | Get shop info by api_key |
TransactionApi | OperationsCommissionPsysCidGet | GET /operations/commission/{psys_cid} | Estimate cryptocurrency fee and Plisio commission |
TransactionApi | OperationsFeePlanPsysCidGet | GET /operations/fee-plan/{psys_cid} | Get Plisio fee plans |
TransactionApi | OperationsFeePsysCidGet | GET /operations/fee/{psys_cid} | Estimate fee |
TransactionApi | OperationsGet | GET /operations | List of all user transactions |
TransactionApi | OperationsIdGet | GET /operations/{id} | Transaction details |
TransactionApi | OperationsWithdrawGet | GET /operations/withdraw | Create new invoice |
WithdrawApi | OperationsWithdrawGet | GET /operations/withdraw | Create new invoice |
- Model.BalanceApiResponseDto
- Model.BalanceResponseDto
- Model.CommissionApiResponseDto
- Model.CommissionResponseBoostDto
- Model.CommissionResponseDto
- Model.CommissionResponseSimpleDto
- Model.CommissionResponseSimpleErrorDto
- Model.CryptocurrencyApiResponseDto
- Model.DonateBlockDto
- Model.DonateDto
- Model.ErrorDto
- Model.ErrorResponseDto
- Model.FeeApiResponseDto
- Model.FeeParamsDto
- Model.FeePlanApiResponseDto
- Model.FeePlanBtcDto
- Model.FeePlanCommonDto
- Model.FeePlanCustomDto
- Model.FeePlanDto
- Model.FeePlanEthDto
- Model.FeePlanLimitsBtcDto
- Model.FeePlanLimitsEthDto
- Model.FeePlanTonDto
- Model.FeePlanTrxDto
- Model.FeePlanXmrDto
- Model.FeeResponseDto
- Model.FeeSimplePlanDto
- Model.FeeSimplePlanItemDto
- Model.HateoasLinkDto
- Model.HateoasLinksDto
- Model.HateoasMetaDto
- Model.InvoiceCallbackExtendedResponseDto
- Model.InvoiceDetailsApiResponseDto
- Model.InvoiceDetailsResponseDto
- Model.InvoiceExtendedResponseDto
- Model.InvoiceFormResponseDto
- Model.InvoicePaysysContractsGroupDto
- Model.InvoicePaysysDto
- Model.InvoiceResponseDto
- Model.InvoiceSimpleResponseDto
- Model.InvoiceSwitchApiResponseDto
- Model.InvoiceUpdateEmailApiResponseDto
- Model.InvoiceUpdateEmailResponseDto
- Model.InvoiceWhiteLabelResponseDto
- Model.OperationApiResponseDto
- Model.OperationDto
- Model.OperationParamsDto
- Model.OperationSimpleDto
- Model.OperationsApiResponseDto
- Model.OperationsHateoasResponseDto
- Model.PaysysDto
- Model.ShopDto
- Model.ShopInfoDto
- Model.ShopResponseDto
- Model.SuccessResponseDto
- Model.WithdrawApiResponseDto
- Model.WithdrawResponseDto
- Type: API key
- API key parameter name: api_key
- Location: URL query string
- Type: API key
- API key parameter name: view_key
- Location: URL query string