Skip to content

Commit

Permalink
Add return statement
Browse files Browse the repository at this point in the history
  • Loading branch information
gcatanese authored Mar 11, 2024
1 parent 0302045 commit e439e64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/checkout.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def adyen_webhooks(notifications)
puts notification["eventCode"]
puts notification["merchantReference"]
# Send a 202 response with an empty body
[202, {}, ['']]
return [202, {}, ['']]
else
# In case of invalid hmac
raise "Invalid HMAC Signature"
Expand Down

0 comments on commit e439e64

Please sign in to comment.