Skip to content

Commit

Permalink
Merge pull request #6 from v-pos/sm-update-docs-badge
Browse files Browse the repository at this point in the history
Update documentation
  • Loading branch information
smaziano authored Apr 14, 2021
2 parents 7598c8d + 426032e commit dae90f9
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# vPOS Java

![Build status](https://github.com/nextbss/vpos-java/workflows/Deploy%20to%20Main%20Branch/badge.svg)
[![Build](https://github.com/v-pos/vpos-java/actions/workflows/maven.yml/badge.svg)](https://github.com/v-pos/vpos-java/actions/workflows/maven.yml)
[![](https://img.shields.io/badge/vPOS-OpenSource-blue.svg)](https://www.vpos.ao)

This java library helps you easily interact with the vPOS API,
Expand Down Expand Up @@ -40,7 +40,7 @@ Add the package dependencies to the `dependencies` element of your project pom.x
// use the default environment variables option
var merchant = new Vpos();

# or use optional arguments option
// or use optional arguments option
var merchant = new Vpos('your_token_here');
```

Expand Down Expand Up @@ -91,11 +91,7 @@ In the case of an unsuccessful response eg. authorization errors (401), bad requ
`ApiException` will be thrown so that your system can handle the error accordingly.

```java
try {
var response = merchant.newPayment("900111222", "199.99");
} catch (ApiException e) {

}
var response = merchant.newPayment("900111222", "199.99");
```

Given you have set up all the environment variables above with the correct information, you will now
Expand Down

0 comments on commit dae90f9

Please sign in to comment.