Directories are a wonderful way to earn money, so it comes with afull payment process built-in.
SuperDir introduces a comprehensive monetization platform that transforms your directory into a revenue-generating business. This complete guide covers all monetization features and their implementation.
The way to test the webhook during local development
This way is universal to all providers. Stripe provides its own CLI to better handle local development. We will introduce it in detail in the Stripe chapter.
If you want to test the webhook locally, you can use ngrok to create a tunnel to your local machine. Ngrok will then give you a URL that you can use to test the webhook locally.
To do so, install ngrok and run it with the following command (while your SuperDir web development server is running):
ngrok
This will give you a URL (see the Forwarding output) that you can use to create a webhook. Just use that url and add /api/auth/{providerName}/webhook/ to it. Replace {providerName} with the name of the provider you are using. For example, if you are using Stripe, you would use stripe as the provider name.