In my last post of 2022, I explained the difference between API and Webhook. Today, I am going to create an actual scenario and show you how to use webhook and why we need it. Okay, let’s get started. Before talking about Webhook, I want to bring the API approach up first. Let’s take payment as an example.