evoDJWebhooks: first steps
Before you start
You need a public https address that accepts a JSON POST and answers with a 2xx status. It can be a CRM, invoicing software or an automation flow. An address on a private network or on localhost is rejected (see the reference).
Configure and test
- Go to Components → evoDJWebhooks → Options, the “Destination and data” tab.
- Enter the “Receiver URL”.
- Enter a “Signing secret”: a long random string. Set the same value on the receiver, which will use it to check the signature of every notice.
- Leave “Data sent” on “Reference (no customer data)”. Switching to “Full” sends personal data; read data and privacy first.
- Save.
- In the Components → evoDJWebhooks → Deliveries panel, click “Send test”. A
pingnotice with no order data is sent to the configured URL. Joomla shows “Test sent: the receiver answered with HTTP status 200” or the reason for the failure. The test works even while “Send notices” is still off. - Check on the receiver that the signature in the
X-Evo-Signatureheader is valid. The algorithm is in the reference.
The test shows up in the panel as one more delivery, with the event “Test (ping)”. A failed test is not retried.
Turn notices on
- Go back to the options and set “Send notices” to “Yes”.
- Check which events you want under “Events”: “New order” and “Status change” are ticked; “Order updated” is not, because it generates a lot of traffic.
- If you only care about some statuses, enter their letters in “Filter by status”, separated by commas (for example
P,C,F). Empty means all. - Save. If something is missing or risky (no URL, no https, no secret, certificate not verified, private networks allowed, full level), Joomla shows a warning when you open the panel.
Check the first order
Before turning it on in production, place a test order through the DJ-Catalog2 checkout. The extension has been tested with a real receiver and with synthetic orders that fire the same DJ-Catalog2 events with the same arguments, but not yet with a real order placed through the shop’s checkout.
- Place the order.
- In Deliveries there should be a row with the event “New order”, the order number and the delivery state “Delivered”.
- Change the order status from the DJ-Catalog2 orders panel. A single “Status change” row appears, with the previous and the new status.
If the row stays “Pending” or becomes “Failed”, the “Error” column and the HTTP code tell you why. Retries and the usual errors are covered in the FAQ.
Making retries work
Retries and “Queued” mode are run by a Joomla scheduled task every 5 minutes. That task only runs if Joomla’s scheduler runs on your site (by server cron or on visits, depending on your setup). Check in System → Scheduled Tasks that “evoDJWebhooks: delivery retries” is enabled and that it runs.