8000 GitHub - Plisio/java-sdk
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Plisio/java-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Plisio Java SDK

Plisio API

  • API version: 1.0 (build for java 11)

Plisio payment gateway API

Requirements

Building the API client library requires:

  1. Java 1.7+
  2. Maven/Gradle

Installation

To install the API client library to your local Maven repository, simply execute:

mvn clean install

To deploy it to a remote Maven repository instead, configure the settings of the repository and execute:

mvn clean deploy

Refer to the OSSRH Guide for more information.

Maven users

Add this dependency to your project's POM:

<dependency>
  <groupId>com.plisiogroup</groupId>
  <artifactId>plisio-java-sdk</artifactId>
  <version>1.0.0</version>
  <scope>compile</scope>
</dependency>

Gradle users

Add this dependency to your project's build file:

compile "com.plisiogroup:plisio-java-sdk:1.0.0"

Others

At first generate the JAR by executing:

mvn clean package

Then manually install the following JARs:

  • target/plisio-java-sdk-1.0.0.jar
  • target/lib/*.jar

Getting Started

Please follow the installation instruction and execute the following Java code:

import com.plisio.invoker.*;
import com.plisio.invoker.auth.*;
import com.plisio.model.*;
import com.plisio.api.BalanceApi;

import java.io.File;
import java.util.*;

public class BalanceApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: api_key
        ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
        api_key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //api_key.setApiKeyPrefix("Token");

        BalanceApi apiInstance = new BalanceApi();
        String psysCid = "psysCid_example"; // String | ID column from one of the supported cryptocurrencies supported by Plisio
        try {
            BalanceApiResponseDto result = apiInstance.balancesPsysCidGet(psysCid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BalanceApi#balancesPsysCidGet");
            e.printStackTrace();
        }
    }
}

Documentation for API Endpoints

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

Documentation for Models

Documentation for Authorization

Authentication schemes defined for the API:

api_key

  • Type: API key
  • API key parameter name: api_key
  • Location: URL query string

view_key

  • Type: API key
  • API key parameter name: view_key
  • Location: URL query string

Recommendation

It's recommended to create an instance of ApiClient per thread in a multithreaded environment to avoid any potential issues.

Author

lead@plisio.net

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0