Configuring the notification webhooks
How to set up Adyen's notification system
Last updated
curl -g -X PATCH \
'http://yourdomain.commercelayer.io/api/adyen_gateways/HGFvfREwAX' \
-H 'Accept: application/vnd.api+json' \
-H 'Authorization: Bearer your-access-token' \
-H 'Content-Type: application/vnd.api+json' \
-d '{
"data": {
"type": "adyen_gateways",
"id": "HGFvfREwAX",
"attributes": {
async_api: true,
webhook_endpoint_secret: 'xxxx-yyyy-zzzz'
}
}
}
}'{
"data": {
"id": "HGFvfREwAX",
"type": "adyen_payments",
"links": {
"self": "https://yourdomain.commercelayer.io/api/adyen_gateways/HGFvfREwAX"
},
"attributes": {
"name":"Adyen 01",
"live_url_prefix":"bdf1c25d-b4e3-4c97-a51c-105e35dcbe27-AdyenDemo",
"async_api": true,
"webhook_endpoint_secret": "xxxx-yyyy-zzzz",
"webhook_endpoint_url":"http://core.commercelayer.dev/webhook_callbacks/adyen_gateways/HGFvfREwAX",
"created_at": "2018-01-01T12:00:00.000Z",
"updated_at": "2018-01-01T12:00:00.000Z",
"reference": null,
"reference_origin": null,
"metadata": {}
},
"relationships": {
"order": {
"links": {...}
}
},
"meta": {
"mode": "test",
"organization_id": "Fg8hIjKlMn",
"trace_id": "0f3a6b9c2d5e8f1a4b7c0d3e6f9a2b5c8d1e4f7a0b3c6d9e2f5a8b1c4d7e0f3a6"
}
},
"meta": {
"mode": "test",
"organization_id": "Fg8hIjKlMn",
"trace_id": "0f3a6b9c2d5e8f1a4b7c0d3e6f9a2b5c8d1e4f7a0b3c6d9e2f5a8b1c4d7e0f3a6"
}
}