Category: Laravel, Laravel, api, api

Have you ever been building an application and thought: “I can make requests to this service’s API, but is there a way for them to let my app know when X happens? Take the response, compare it to the last, and go from there. This is polling, but it is inefficient and can be an easy way to hit rate limits.

Paystack gives you the leeway to add a webhook URL to your dashboard in API & Webhook section of the settings page.

What is needed to be done after this is to update the file in this path config/laravel-webhook-client.php with the name of the class handling the webhook response gotten from Paystack or any other service you might be using(say Github API, Stripe API, etc).
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners