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 @@