...
Copy the URL of the created site (The site where you will copy the URL is accessible by Guest Users.)
Go to Stripe Account and search for webhook and Add Enpoint (if you don’t have existing endpoint).
In add endpoint, paste your site url and add additional text on your site like your url + /services/apexrest/PosiPay/v1/Webhook/)
Add your description
In Select Events
How to set up webhook in the Stripe Dashboard
How to populate Base URL on Gateway Account
o Go to Setup and search All Sites on Quick Find
o Copy the URL of the site that is accessible by Guest users.
o Once copied, paste the URL on the base URL of the Gateway Account
o When the gateway account is being saved, the Webhook Endpoint URL will get the base URL and concat the remaining text and its gateway account ID.
Go to Developers > Webhooks > Add endpoint.
...