From 26834be04197a51e61c8282c257ecfc180ef2a48 Mon Sep 17 00:00:00 2001 From: Beppe Catanese <1771700+gcatanese@users.noreply.github.com> Date: Mon, 11 Mar 2024 16:02:15 +0100 Subject: [PATCH] Return ok from service --- app/models/checkout.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/checkout.rb b/app/models/checkout.rb index a5f6172..2b14048 100644 --- a/app/models/checkout.rb +++ b/app/models/checkout.rb @@ -59,7 +59,7 @@ def adyen_webhooks(notifications) puts notification["eventCode"] puts notification["merchantReference"] # Send a 202 response with an empty body - return [202, {}, ['']] + "Ok" else # In case of invalid hmac raise "Invalid HMAC Signature"