unknownnpc / payment-systems-wrapper

Java/Scala API for integration with money systems (Qiwi, WM, P24)

GitHub

Build Status Maven Central Maven Central Maven Central

payment-systems-wrapper

Overview

Multi-module sbt project with API for integration with banks/money systems (Qiwi, WM, P24). Table below contains some more details about current implementation status.

PS: project structure & code smell in some places. It happens because of luck of time. Sorry for that :3

Content

Install

Requires Java 1.8 and sbt 1.2.8

sbt clean compile

Usage in pom.xml

<dependencies>
    <!-- QIWI API -->
    <dependency>
        <groupId>com.github.unknownnpc.psw</groupId>
        <artifactId>qiwi_2.12</artifactId>
        <version>X.X.X</version>
    </dependency>
    <!-- WebMoney API -->
    <dependency>
        <groupId>com.github.unknownnpc.psw</groupId>
        <artifactId>webmoney_2.12</artifactId>
        <version>X.X.X</version>
    </dependency>
    <!-- Privat24 API -->
    <dependency>
        <groupId>com.github.unknownnpc.psw</groupId>
        <artifactId>privat24_2.12</artifactId>
        <version>X.X.X</version>
    </dependency>
</dependencies>

Usage in java code

P24API p24Api = P24API.getInstance(merchId, merchPass));
QiwiAPI qiwiApi = QiwiAPI.getInstance(qiwiApiToken);
// Requires KWM backup key(!)
WebMoneyAPI webMoneyApi = WebMoneyAPI.getInstance("wimd", "kwm_pass", kwmBytesArr);        

API details

Payment system Action/Tool URL Class Check on live data
Privat24 Retrieve card history P24 API docs p24.P24API#retrieveTransferHistory Yes
Privat24 Retrieve card balance P24 API docs p24.P24API#retrieveCardBalance Yes
Qiwi Retrieve payments QIWI API docs qiwi.QiwiAPI#retrieveTransferHistory Partially
Qiwi Retrieve account balance QIWI API docs qiwi.QiwiAPI#retrieveAccountBalance Yes
WebMoney Retrieve payments, interface X3 WM API docs wm.WebMoneyAPI#runX3Command Partially
WebMoney Wallets balance, interface X9 WM API docs wm.WebMoneyAPI#runX9Command Partially
WebMoney WM Signer WM Signer docs wm.signer.WMSigner Yes