Skip to content

Commit

Permalink
Add log
Browse files Browse the repository at this point in the history
  • Loading branch information
ioannis-kody committed Dec 3, 2024
1 parent 9d5a468 commit 2a2d93f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions samples/src/main/java/ecom/EcomBlockingJavaClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public static void main(String[] args) throws ExecutionException, InterruptedExc

// Wait for payment to be complete before refunding it
do {
LOG.info("Waiting for online payment to complete");
Thread.sleep(5000);
payment = ecomBlockingJavaClient
.getPaymentsBlocking()
Expand Down
1 change: 0 additions & 1 deletion samples/src/main/java/terminal/TerminalJavaClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ public CompletableFuture<PaymentStatus> cancelPayment(String amountStr, String o
}

public RefundResponse requestRefund(String amountStr, String orderId) throws ExecutionException, InterruptedException, TimeoutException {
// Waiting for payment to complete
Executor delayed = CompletableFuture.delayedExecutor(5L, TimeUnit.SECONDS);

CompletableFuture<RefundResponse> completableFutureCompletableFuture = CompletableFuture.supplyAsync(() -> {
Expand Down

0 comments on commit 2a2d93f

Please sign in to comment.