From 2a2d93f53c3b2815077044300a412fa2f9d0cb4e Mon Sep 17 00:00:00 2001 From: Ioannis Petridis Date: Tue, 3 Dec 2024 15:41:53 +0000 Subject: [PATCH] Add log --- samples/src/main/java/ecom/EcomBlockingJavaClient.java | 1 + samples/src/main/java/terminal/TerminalJavaClient.java | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/src/main/java/ecom/EcomBlockingJavaClient.java b/samples/src/main/java/ecom/EcomBlockingJavaClient.java index 4e95e93..643bca5 100644 --- a/samples/src/main/java/ecom/EcomBlockingJavaClient.java +++ b/samples/src/main/java/ecom/EcomBlockingJavaClient.java @@ -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() diff --git a/samples/src/main/java/terminal/TerminalJavaClient.java b/samples/src/main/java/terminal/TerminalJavaClient.java index 2afde70..9d998f6 100644 --- a/samples/src/main/java/terminal/TerminalJavaClient.java +++ b/samples/src/main/java/terminal/TerminalJavaClient.java @@ -71,7 +71,6 @@ public CompletableFuture 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 completableFutureCompletableFuture = CompletableFuture.supplyAsync(() -> {