Peach Payments: Simple, Seamless, Secure transactions in Africa. Empowering businesses with tools for digital sales. Focus on customer service. Available in South Africa, Kenya, Mauritius. Peach Payments's Java SDK generated by Konfig (
konfigthis.com).
# Peach payments
The Payments API enables you to do a custom integration with Peach Payments and thereby support multiple payment methods.
## Requirements
Building the API client library requires:
1. Java 1.8+
2. Maven (3.8.3+)/Gradle (7.2+)
If you are adding this library to an Android Application or Library:
3. Android 8.0+ (API Level 26+)
## Installation
### Maven users
Add this dependency to your project's POM:
```xml
com.konfigthis
peach-payments-java-sdk
2.0.0
compile
```
### Gradle users
Add this dependency to your `build.gradle`:
```groovy
// build.gradle
repositories {
mavenCentral()
}
dependencies {
implementation "com.konfigthis:peach-payments-java-sdk:2.0.0"
}
```
### Android users
Make sure your `build.gradle` file as a `minSdk` version of at least 26:
```groovy
// build.gradle
android {
defaultConfig {
minSdk 26
}
}
```
Also make sure your library or application has internet permissions in your `AndroidManifest.xml`:
```xml
```
### Others
At first generate the JAR by executing:
```shell
mvn clean package
```
Then manually install the following JARs:
* `target/peach-payments-java-sdk-2.0.0.jar`
* `target/lib/*.jar`
## Getting Started
Please follow the installation instruction and execute the following Java code:
```java
import com.konfigthis.client.ApiClient;
import com.konfigthis.client.ApiException;
import com.konfigthis.client.ApiResponse;
import com.konfigthis.client.PeachPayments;
import com.konfigthis.client.Configuration;
import com.konfigthis.client.auth.*;
import com.konfigthis.client.model.*;
import com.konfigthis.client.api.BatchApi;
import java.util.List;
import java.util.Map;
import java.util.UUID;
public class Example {
public static void main(String[] args) {
Configuration configuration = new Configuration();
configuration.host = "
testapi-v2.peachpayments.com";
// Configure HTTP bearer authorization: BearerAuth
configuration.token = "BEARER TOKEN";
PeachPayments client = new PeachPayments(c …