How do you configure WooCommerce payment webhooks?

Create the webhook in the payment provider using the exact endpoint supplied by its WooCommerce gateway. Select only the events named in the gateway documentation, use HTTPS, and copy the signing secret or token into the correct live or test settings.
The endpoint must be reachable without login, JavaScript, or a browser challenge. Exclude it from page cache and allow it through the firewall while retaining signature verification. Do not whitelist every request from the internet simply to make delivery succeed.
Send a provider test event and inspect its response plus the WooCommerce gateway log. Then complete a real test payment, cancellation, and refund. Record webhook secrets securely and rotate them when staff or environments change.