This guide will take you through setting up and testing local tests of Mollie Webhooks.
The Mollie payment provider uses webhooks to finalize payments. Due to this, it can be tricky to test payments locally as Mollie must have a public-facing URL to be able to notify you.
You could expose your website through your network's firewall or use tools that to create temporary tunnels through your network.
The following guide will use ngrok to create temporary tunnels through your network.
Head on over to ngrok.com.
Download and install the tool on your system.
You can either launch ngrok from the command line or use the steps below to create a batch file to be run at any time.
Open NotePad.
Type the following:
Swap the local domain/port number at the end according to the configuration of your site.
Save the file as ngrok.bat
at the root of your web project.
You can run the batch file at any time to launch ngrok and create a publicly accessible tunnel to your website.
When you launch ngrok for the first time, it will ask you to sign in. Enter the credentials you used to sign up. It will remember them from now on.
With ngrok running you can test the site using the URLs displayed in the console window. The Mollie gateway will automatically be able to communicate back to your site instance.
You will see webhook requests displayed in the console window, and you can debug them using Visual Studio.
Find guides to help you work with the Mollie (One Time) payment provider for Umbraco Commerce.
In this section, we will provide you with a number of step-by-step how-to guides that may come in useful when working with the Mollie payment provider.