IPN (immediate payment notification) is a setting in PayPal account which works just like webhook in stripe.
The difference is literally, it comes back as soon as payment is processed.
We can do payment confirmation in your back-end using the notification.
In order to activate it, you need to do it in your PayPal account.
If not, you can not get the notification.