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

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners