paynova-java

A lightweight client that can be used to consume Paynova's REST API services

License

License

Categories

Categories

Java Languages CLI User Interface
GroupId

GroupId

com.paynova.api.client
ArtifactId

ArtifactId

paynova-java
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

paynova-java
A lightweight client that can be used to consume Paynova's REST API services
Project URL

Project URL

http://www.paynova.com
Source Code Management

Source Code Management

https://github.com/Paynova/paynova-api-java-client.git

Download paynova-java

How to add to project

<!-- https://jarcasting.com/artifacts/com.paynova.api.client/paynova-java/ -->
<dependency>
    <groupId>com.paynova.api.client</groupId>
    <artifactId>paynova-java</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.paynova.api.client/paynova-java/
implementation 'com.paynova.api.client:paynova-java:1.0.0'
// https://jarcasting.com/artifacts/com.paynova.api.client/paynova-java/
implementation ("com.paynova.api.client:paynova-java:1.0.0")
'com.paynova.api.client:paynova-java:jar:1.0.0'
<dependency org="com.paynova.api.client" name="paynova-java" rev="1.0.0">
  <artifact name="paynova-java" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.paynova.api.client', module='paynova-java', version='1.0.0')
)
libraryDependencies += "com.paynova.api.client" % "paynova-java" % "1.0.0"
[com.paynova.api.client/paynova-java "1.0.0"]

Dependencies

test (1)

Group / Artifact Type Version
junit : junit jar 4.8.2

Project Modules

There are no modules declared in this project.

#Paynova API JAVA Client

This is an overview of the Paynova API Java Client using [Paynova REST API][] (Aero). More in-depth information can be found in the [Wiki][]. [Paynova REST API]: http://docs.paynova.com/display/API/Paynova+API+Home [Wiki]: https://github.com/Paynova/paynova-api-java-client/wiki

##Dependencies Java version >= 1.5 required.

##Get started

  • Get started by downloading the zip-file

##Maven With maven installed you can build this package by:

mvn install

The above statement creates a jar in a folder named "target".

To run the tests with maven:

mvn test

#As dependency

<dependency>
	<groupId>com.paynova.api.client</groupId>
	<artifactId>paynova-java</artifactId>
	<version>put version number here</version>
</dependency>

##Quick example Below example creates an order at Paynova.


PaynovaClient client = new PaynovaClientImpl("endpoint","username","password");
CreateOrderResponse createOrderResponse = null;
try{
	createOrderResponse = client.createOrder("123-your-order-number", 
			new BigDecimal(100.00),CurrencyCode.SWEDISH_KRONA);
}catch(PaynovaHttpException phe){
	System.out.println(phe);
	//If Paynova API server is reached phe.getStatus() returns the Status object
}

##License Read the LICENSE file

com.paynova.api.client

Paynova AB

Versions

Version
1.0.0