diff --git a/authorisation-adjustment-example/src/main/java/com/adyen/checkout/web/AdminController.java b/authorisation-adjustment-example/src/main/java/com/adyen/checkout/web/AdminController.java index 380b8c5..c740f5b 100644 --- a/authorisation-adjustment-example/src/main/java/com/adyen/checkout/web/AdminController.java +++ b/authorisation-adjustment-example/src/main/java/com/adyen/checkout/web/AdminController.java @@ -36,7 +36,6 @@ public AdminController(ApplicationProperty applicationProperty) { log.warn("ADYEN_KEY is UNDEFINED"); throw new RuntimeException("ADYEN_KEY is UNDEFINED"); } - var client = new Client(applicationProperty.getApiKey(), Environment.TEST); this.modificationsApi = new ModificationsApi(client); } @@ -57,7 +56,6 @@ public String result(@PathVariable String status, @PathVariable String reference result = "error"; } - model.addAttribute("title", "Adyen Admin Result"); model.addAttribute("type", result); model.addAttribute("reference", reference); model.addAttribute("refusalReason", refusalReason); @@ -68,10 +66,7 @@ public String result(@PathVariable String status, @PathVariable String reference @GetMapping("/admin/details/{reference}") public String details(@PathVariable String reference, Model model) { PaymentModel data = Storage.findByMerchantReference(reference); - - model.addAttribute("title", "Adyen Admin Payment History"); model.addAttribute("data", data); - return "admin/details"; } diff --git a/authorisation-adjustment-example/src/main/resources/templates/admin/details.html b/authorisation-adjustment-example/src/main/resources/templates/admin/details.html index 2ae8f5e..72be7f3 100644 --- a/authorisation-adjustment-example/src/main/resources/templates/admin/details.html +++ b/authorisation-adjustment-example/src/main/resources/templates/admin/details.html @@ -3,7 +3,7 @@ xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" layout:decorate="~{layout}"> - Admin View + Admin Details View
diff --git a/authorisation-adjustment-example/src/main/resources/templates/admin/index.html b/authorisation-adjustment-example/src/main/resources/templates/admin/index.html index 2dfd3b7..6611170 100644 --- a/authorisation-adjustment-example/src/main/resources/templates/admin/index.html +++ b/authorisation-adjustment-example/src/main/resources/templates/admin/index.html @@ -3,7 +3,7 @@ xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" layout:decorate="~{layout}"> - Admin View + Adyen Admin Panel