You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: commerce-add-ons/payment-providers/mollie/how-to-guides/testing-mollie-webhooks-locally.md
+16-5Lines changed: 16 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,17 +5,28 @@ description: >-
5
5
Webhooks.
6
6
---
7
7
8
-
# How to test Mollie webhooks locally
8
+
# How to Test Mollie Webhooks Locally
9
9
10
-
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.
10
+
Mollie uses webhooks to finalize payments, but testing them locally can be challenging because Mollie requires a public-facing URL to send notifications. Local URLs like `http://localhost:3000` or `http://localhost:8080` are not accessible from the internet.
11
11
12
-
You could expose your website through your network's firewall or use tools that to create temporary tunnels through your network.
12
+
**Solution: Use a Local Tunnel**
13
13
14
-
The following guide will use [ngrok](https://ngrok.com/) to create temporary tunnels through your network.
14
+
A local tunnel is a port-forwarding technique that exposes a local API service (running on a specific port) to the internet. This is done through a public HTTPS URL. It allows you to:
15
+
16
+
1. Make your local server accessible online temporarily.
17
+
2. Use the generated public URL in Mollie’s webhook settings.
18
+
3. Receive webhook events directly on your local development machine.
19
+
20
+
With a local tunnel, you can test and debug Mollie webhooks without deploying your application to a live environment. Here are two popular tools to create a secure public URL for testing Mollie webhooks:
21
+
22
+
1.[Ngrok](https://ngrok.com/?utm_source=docs.umbraco.com) is a widely used tool that creates a secure tunnel from your local machine to a public URL. It supports advanced configurations and works well with webhook-based systems.
23
+
2.[Beeceptor’s Local Tunnel](https://beeceptor.com/local-tunnel/?utm_source=docs.umbraco.com) gives a public HTTP mock server that allows you to expose your local server to the internet securely. Supports HTTPs, mock rules and comes with request history. The Free plan includes 50 requests/day per tunnel or endpoint.
24
+
25
+
The following guide will use [ngrok](https://ngrok.com/?utm_source=docs.umbraco.com) to create temporary tunnels through your network.
15
26
16
27
## Step 1: Install ngrok
17
28
18
-
1. Head on over to [ngrok.com](https://ngrok.com/).
29
+
1. Head on over to [ngrok.com](https://ngrok.com/?utm_source=docs.umbraco.com).
0 commit comments