From f2f860a1dd8db40e247cd8ca71d89742cdbae3fc Mon Sep 17 00:00:00 2001 From: Beppe Catanese <1771700+gcatanese@users.noreply.github.com> Date: Mon, 8 Jan 2024 16:38:42 +0100 Subject: [PATCH] Declare parent Exception --- .../main/java/com/adyen/checkout/api/WebhookController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/authorisation-adjustment-example/src/main/java/com/adyen/checkout/api/WebhookController.java b/authorisation-adjustment-example/src/main/java/com/adyen/checkout/api/WebhookController.java index e28098d..89e9025 100644 --- a/authorisation-adjustment-example/src/main/java/com/adyen/checkout/api/WebhookController.java +++ b/authorisation-adjustment-example/src/main/java/com/adyen/checkout/api/WebhookController.java @@ -48,7 +48,7 @@ public WebhookController(ApplicationProperty applicationProperty) { * @return */ @PostMapping("/webhooks/notifications") - public ResponseEntity webhooks(@RequestBody String json) throws IOException, RuntimeException, SignatureException, Exception { + public ResponseEntity webhooks(@RequestBody String json) throws Exception { // from JSON string to object var notificationRequest = NotificationRequest.fromJson(json); @@ -161,4 +161,4 @@ private void savePayment(NotificationRequestItem notification) { public HMACValidator getHmacValidator() { return new HMACValidator(); } -} \ No newline at end of file +}