Skip to content

Commit

Permalink
Changes the api endpoint to the newer http://vpos.ao/api
Browse files Browse the repository at this point in the history
  • Loading branch information
smaziano committed Sep 22, 2021
1 parent 84b8b58 commit eb8595a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

<groupId>ao.vpos.vpos</groupId>
<artifactId>vpos</artifactId>
<version>1.0.0</version>
<version>1.0.1</version>

<name>vpos</name>
<url>https://github.com/nextbss/vpos-java</url>
<url>https://github.com/v-pos/vpos-java</url>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ao/vpos/vpos/Vpos.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import java.util.UUID;

public class Vpos {
private static final String HOST = "https://api.vpos.ao";
private static final String HOST = "https://vpos.ao";
private final HttpClient client = HttpClient.newHttpClient();

private URL baseUrl;
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/ao/vpos/vpos/VposTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public void itShouldCreateNewPaymentTransaction() throws IOException, Interrupte
@Test
public void itShouldCreateNewRefundTransaction() throws IOException, InterruptedException, ApiException {
var merchant = new Vpos();
var response = merchant.newPayment("900111222", "123.45");
var response = merchant.newPayment("900000000", "123.45");
var transactionId = merchant.getTransactionId(response.getLocation());

TimeUnit.SECONDS.sleep(10);
Expand All @@ -154,7 +154,7 @@ public void itShouldCreateNewRefundTransaction() throws IOException, Interrupted
@Test
public void itShouldGetRequestWhileTransactionIsQueued() throws IOException, InterruptedException, ApiException {
var merchant = new Vpos();
var response = merchant.newPayment("900111222", "123.45");
var response = merchant.newPayment("900000000", "123.45");
var transactionId = merchant.getTransactionId(response.getLocation());

Response<Request> request = merchant.getRequest(transactionId);
Expand Down

0 comments on commit eb8595a

Please sign in to comment.