How gcatanese/afpwebhooks works
This is a Java/Spring sample for receiving Adyen platform webhooks. Its documented workflow is to receive a POST, validate its HMAC signature, acknowledge valid notifications, and process their payloads. The README also describes configuration, transfer, and report events, and recommends asynchronous processing; the tree shows webhook models and utility classes but no queue or database implementation. No source excerpts were provided, so the relationships below reflect the README’s documented workflow rather than verified method calls.
Main entry points: WebhookController.java Webhook handler · configuration Webhook models · EventHandler.java Event deserialization · Application.java Spring application
Components 11
Webhook ingress
- Spring application
src/main/java/com/adyen/examples/Application.java - App properties
src/main/java/com/adyen/examples/ApplicationProperty.java - Webhook handler
src/main/java/com/adyen/examples/controller/WebhookController.java
Validation and processing
- HMAC validation
src/main/java/com/adyen/examples/util/HMACValidator.java - Event deserialization
src/main/java/com/adyen/examples/util/EventHandler.java - Queue or database
Webhook domains
- Webhook models
src/main/java/com/adyen/examples/model/configuration - Configuration events
src/main/java/com/adyen/examples/model/configuration - Transfer events
src/main/java/com/adyen/examples/model - Report events
src/main/java/com/adyen/examples/model
Other components
- Adyen
Connections 9
- Adyen → Webhook handler: POSTs events
README.md - Spring application → Webhook handler: hosts handler
- Webhook handler → HMAC validation: validates signature
README.md - Webhook handler → Event deserialization: processes event
README.md - Webhook handler → Queue or database: may enqueue
README.md - Event deserialization → Webhook models: deserializes payload
README.md - Webhook models → Configuration events: maps events
README.md - Webhook models → Transfer events: maps events
README.md - Webhook models → Report events: maps events
README.md