From 5140e9f72ced8ffd41822d115101f852499be7c0 Mon Sep 17 00:00:00 2001 From: Kwok He Chu <105217051+Kwok-he-Chu@users.noreply.github.com> Date: Fri, 5 Jan 2024 16:53:06 +0100 Subject: [PATCH] Fix Adyen Admin Panel title name --- .../main/java/com/adyen/checkout/web/AdminController.java | 5 ----- .../src/main/resources/templates/admin/details.html | 2 +- .../src/main/resources/templates/admin/index.html | 2 +- 3 files changed, 2 insertions(+), 7 deletions(-) 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