Test webhooks locally

Test Mollie webhooks locally by using a tunneling app.

Before you start

Steps

  1. Run a command to overwrite the domain. For example:

    ./ngrok http --host-header=rewrite my-local-gambio-domain:443

    The app returns a public URL such as https://123456789.ngrok.io.

  2. Add the public URL to the Mollie Gambio configuration service (Mollie\Gambio\Services\Business\ConfigurationService) by modifying its getDebugUrlmethod.

    /**
    * Returns the debug url for your local environment
    *
    * @return string
    */
       public function getDebugUrl()
    {
       return 'https://123456789.ngrok.io';
    }