Code Monkey home page Code Monkey logo

yoomoneysdk's Introduction

YooMoney SDK (Java)

Warning

This is a work in progress library.
It will be released when all 'TO DO' is completed.

You can help me if you test and write an issue about some feature.
Please use English or Russian when writing it.


Overview

Custom SDK for YooMoney API. Created as replacement for yoomoney-sdk-java. This Java library contains classes that allows you to do payments and call other methods of YooMoney public API.

Examples

All existing at the moment examples you can see in test folder.


TO DO:

  • Authorization (Access token get/revoke)
  • Notification hook
  • Method: account-info
  • Method: operation-history
  • Method: operation-details
  • Method: request-payment
  • Method: process-payment
  • Transfer forms (quick pay)
  • Showcase Search
  • Showcase Request
  • Showcase Validate
  • Documentation

yoomoneysdk's People

Contributors

an1by avatar

Stargazers

itskekoff avatar

Watchers

 avatar

yoomoneysdk's Issues

Проблема с историей операций

Вот ошибка:
Java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 2 path $
at com.google.gson.stream.JsonReader.beginObject(JsonReader.java:385) ~[gson-2.8.4.jar:na]
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:215) ~[gson-2.8.4.jar:na]
at com.google.gson.Gson.fromJson(Gson.java:922) ~[gson-2.8.4.jar:na]
at com.google.gson.Gson.fromJson(Gson.java:887) ~[gson-2.8.4.jar:na]
at com.google.gson.Gson.fromJson(Gson.java:836) ~[gson-2.8.4.jar:na]
at com.google.gson.Gson.fromJson(Gson.java:808) ~[gson-2.8.4.jar:na]
at net.aniby.yoomoney.client.YooMoneyClient.request(YooMoneyClient.java:75) ~[main/:na]
at net.aniby.yoomoney.client.YooMoneyClient.getOperationHistory(YooMoneyClient.java:109) ~[main/:na]

я сделал принт response body, там просто ""
    public boolean checkPayment(String orderId) throws IOException {
        OperationHistoryRequest request = OperationHistoryRequest.builder()
                .label(orderId)
                .records(1)
                .type("deposition")
                .build();
        for (Operation operation : client.getOperationHistory(request).getOperations()) {
            System.out.println(operation.toString());
        }
        return false;
    }```
    
    

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.