Notifications
To keep you updated on the status of a payment, we send you notifications. The Adyen payments add-on for SAP Commerce (Hybris) accepts notifications sent from Adyen using the controller under URL /adyen/v6/notification/json.
To receive notifications, you first need to set up a standard JSON notification in the Adyen Customer Area. Refer to Server notification settings.
HTTP basic authentication
The notifications are secured via HTTP basic authentication. You need to configure your username and password for basic authentication in the Adyen Customer Area when you set up notifications, and also in your SAP back office.
As an extra layer of security you can allowlist Adyen IP ranges so that the controller under /adyen/v6/notification/json is only available from the Adyen address space.
Cron job
Adyen may send notifications in batches, and their processing can be a resource-intensive procedure. The add-on provides the cron job AdyenProcessNotificationCronJob
that processes notifications regularly.
Event handling
The add-on handles notifications by their eventCode
:
- Authorization: Events are handled by registering the appropriate AUTHORIZATION transaction entry and emitting the
AdyenPaymentResult
event (or theAdyenAuthorized
event for plugin versions below 7.0.0) to the corresponding order processes. - Capture: Events are handled by registering the appropriate CAPTURE transaction entry and emitting the
AdyenCaptured
event to the corresponding order processes. - Refund: Events are handled by registering the appropriate REFUND_FOLLOW_ON transaction entry and emitting the
AdyenRefunded
event to the corresponding return processes. - Cancellation: Events are handled by registering the appropriate CANCEL transaction entry.