You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+27-10
Original file line number
Diff line number
Diff line change
@@ -1,33 +1,41 @@
1
-

1
+

2
2
3
3
# Unzer Java Payment SDK
4
+
4
5
This SDK provides for an easy way to connect to the Unzer Rest API.
5
6
6
7
## Requirements
7
8
8
9
Java 1.8 or later.
9
10
10
11
## Installation
12
+
11
13
```xml
12
14
<dependency>
13
15
<groupId>com.unzer.payment</groupId>
14
16
<artifactId>java-sdk</artifactId>
15
-
<version>1.1.2.7</version>
17
+
<version>1.2.0.0</version>
16
18
</dependency>
17
19
```
18
20
19
21
## Documentation
22
+
20
23
Documentation is available at https://docs.unzer.com/server-side-integration/java-sdk-integration/.
21
24
22
25
## SDK Overview
26
+
23
27
### Unzer class
28
+
24
29
The Unzer class is instantiated using your private or public key:
30
+
25
31
```java
26
32
Unzer unzer =newUnzer("s-priv-xxxxxxxxxx");
27
33
```
34
+
28
35
You can inject a custom implementation of the http-network communication into the Unzer constructor. For implementing a custom communication stack, you have to subclass the AbstractUnzerRestCommunication class together with a UnzerHttpRequest. For an example please refer to the reference implementation HttpClientBasedRestCommunication.
29
36
30
37
### Authorize or Charge a payment
38
+
31
39
The first step is to create a Payment Type and then do an authorize or charge for this Payment Type
0 commit comments