Enter a name for your app and select a sandbox or live environment.
Click Create.
Step 2: Configure your web hook listener
In the My Apps & Credentials page, click the name of your app.
On the next page, scroll to the Web hooks section.
Click Add Web hook.
Enter the URL of your web hook listener. This is the endpoint that will receive the web hook notifications from PayPal.
Select the events that you want to subscribe to.
Click Save and your web hook will be added to the web hook list.
Step 3: Test your web hooks
In the Web hooks tab, click the Simulator tab.
Select the event that you want to test.
Click Send.
PayPal will send a test web hook notification to your web hook listener.
Step 4: Implement your web hook handler
Your web hook handler is the code that will be executed when PayPal sends a web hook notification to your web hook listener. The handler will need to parse the web hook notification and take the appropriate action.