From 1c439652b1b0ebc1aad212cbe257586a92ccb2a0 Mon Sep 17 00:00:00 2001 From: Kwok He Chu <105217051+Kwok-he-Chu@users.noreply.github.com> Date: Thu, 16 Nov 2023 13:57:38 +0100 Subject: [PATCH] Fix success scenario --- .../com/adyen/ipp/web/InPersonPaymentsWebController.java | 6 ++++++ .../src/main/resources/templates/result.html | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/in-person-payments-example/src/main/java/com/adyen/ipp/web/InPersonPaymentsWebController.java b/in-person-payments-example/src/main/java/com/adyen/ipp/web/InPersonPaymentsWebController.java index 3d9f3621..8c5a18bb 100644 --- a/in-person-payments-example/src/main/java/com/adyen/ipp/web/InPersonPaymentsWebController.java +++ b/in-person-payments-example/src/main/java/com/adyen/ipp/web/InPersonPaymentsWebController.java @@ -91,4 +91,10 @@ public String result(@PathVariable String type, @PathVariable(required = false) model.addAttribute("refusalReason", refusalReason); return "result"; } + + @GetMapping("/result/{type}") + public String result(@PathVariable String type, Model model) { + model.addAttribute("type", type); + return "result"; + } } diff --git a/in-person-payments-example/src/main/resources/templates/result.html b/in-person-payments-example/src/main/resources/templates/result.html index 9650722c..bffd9978 100644 --- a/in-person-payments-example/src/main/resources/templates/result.html +++ b/in-person-payments-example/src/main/resources/templates/result.html @@ -12,7 +12,7 @@