-
Notifications
You must be signed in to change notification settings - Fork 17
Home
This repository contains the official Paynow SDK for use with Java.
Note: We have just released a new version of our Java SDK, 1.1.0 which represents a major refactor of the code, with the goal of making this SDK easier to use. Some package structures and object names have been changed and you may need to update your code if you were previously using version 1.0.0. See the Wiki section for details on how to use the newer version SDK.
In order to make use of this project, the following prerequisites must be met for it to work.
- Setup your developer account to obtain a integration ID and key
- In your project, make use of Java JDK 7 or higher
To use the Java Paynow SDK, you need to add the latest release of this project as a dependency.
repositories {
mavenCentral()
}
dependencies {
compile group: ‘zw.co.paynow’, name: ‘java-sdk’, version: ‘1.0.0’
}
<dependency>
<groupId>zw.co.paynow</groupId>
<artifactId>java-sdk</artifactId>
<version>1.0.0</version>
</dependency>
To see a full code demo of how to use the SDK, see this example. Otherwise, for a more in depth explanation on various usages of this SDK, have a look at the pages below.
- [PDF] Download Paynow API Documentation
- Initiate a web transaction
- Initiate a mobile transaction
- Poll your transaction to check for the payment status
A Spring Boot SDK which makes use of this Java SDK has been developed by the community. View the project here if you would like to use it in your project.
Pull requests and new issues are very welcome. If you identify an issue with the SDK please raise it in the issues section. If you have solved any issues or have suggestions to improve the SDK, please create a pull request.