Configuring the notification webhooks
How to set up Adyen's notification system
Last updated
How to set up Adyen's notification system
Last updated
You want to rely on Adyen's webhooks notification system, which is the only way can receive automatic updates about requests that are processed asynchronously (e.g. iDEAL transactions or payment modifications — captures, voids, and refunds).
You can enable Adyen's notification system in two separate steps:
Configure the notification webhooks on your Adyen's customer area.
Update your Adyen gateway on Commerce Layer
To configure the notification system, first you need to access your Adyen's customer area and follow the procedure detailed here. On the Server configuration and Security sections, make sure to perform the following actions:
Copy the webhook_endpoint_url
you'll get by into the URL
field.
Select JSON as the method.
Select TLSv1.2 as the protocol.
Generate the HMAC key to verify the integrity of notifications and copy it.
Commerce Layer does not support the Adyen webhooks SOAP or HTTP methods, but the JSON one only.
Once the notification webhooks are properly configured, you need to update your Adyen gateway and specify you're going to support the asynchronous notifications system.
To do that, send a PATCH
request to the /api/adyen_gateway/:id
endpoint, setting the async_api
attribute as true
and passing the HMAC key you generated in the previous step as the webhook_endpoint_secret
value.
The following request updates the Adyen gateway identified by the "HGFvfREwAX" ID in order to use the Adyen asynchronous APIs:
Be sure to enable webhooks on the Adyen dashboard as the very first step, and by the way always before setting the gateway's async_api
attribute to true
, otherwise you risk all of your payment modifications failing silently.
See our documentation if you need more information on how to or .