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).