Skip to content

zyc1006/java-sdk

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Coverage Status Maven Central

Hyperwallet REST SDK (Beta)

A library to manage users, transfer methods and payments through the Hyperwallet API

Prerequisites

Hyperwallet's Java server SDK requires at minimum JDK (Java Development Kit) version 1.7 and above.

Installation

Maven

<dependency>
    <groupId>com.hyperwallet</groupId>
    <artifactId>sdk</artifactId>
    <version>0.5.0</version>
</dependency>

Gradle

compile 'com.hyperwallet:sdk:0.5.0'

Documentation

Documentation is available at http://hyperwallet.github.io/java-sdk.

API Overview

To write an app using the SDK

  • Register for a sandbox account and get your username, password and program token at the Hyperwallet Program Portal.

  • Add dependency com.hyperwallet:sdk:0.5.0 to your pom.xml (or build.gradle).

  • Create a instance of the Hyperwallet Client (with username, password and program token)

    Hyperwallet client = new Hyperwallet("restapiuser@4917301618", "mySecurePassword!", "prg-645fc30d-83ed-476c-a412-32c82738a20e");
  • Start making API calls (e.g. create a user)

    HyperwalletUser user = new HyperwalletUser();
    user
      .clientUserId("test-client-id-1")
      .profileType(HyperwalletUser.UserProfileType.INDIVIDUAL)
      .firstName("Daffyd")
      .lastName("y Goliath")
      .email("testmail-1@hyperwallet.com")
      .addressLine1("123 Main Street")
      .city("Austin")
      .stateProvince("TX")
      .country("US")
      .postalCode("78701");
    
    try {
        HyperwalletUser createdUser = client.createUser(user);
    } catch (HyperwalletException e) {
        // Add error handling here
    }

Development

Run the tests using maven:

$ mvn test

Reference

REST API Reference

License

MIT

About

An SDK implementation in Java for the v3 REST APIs.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 99.9%
  • Shell 0.1%