# How to Test Stripe, Shopify and Discord Webhooks on Localhost with ProxVN

Learn how to receive real Stripe, Shopify and Discord webhooks on localhost with ProxVN: one command, a stable public URL, and live request inspection.

Source: https://proxvn.io.vn/blog/test-stripe-shopify-discord-webhooks-localhost

If you build with Stripe, Shopify or Discord, you have met the same wall: those platforms live on the public internet, and your app lives on localhost. They cannot call ` http://localhost:3000 ` to tell you that a payment succeeded, an order was created, or a slash command was used. You need a public HTTPS URL that forwards to your machine — and, while you are iterating, you need that URL to stay the same.

That is exactly what ProxVN does. It exposes a local app to the internet via a public link with one command, with no router port-forwarding, and it works behind CGNAT. In this tutorial you will receive real webhooks from all three platforms on your own computer.

## The problem with changing URLs

Many free tunneling tools give you a new random URL every time you restart them. That breaks your setup in three places at once: the webhook URL saved in the Stripe Dashboard, the webhook saved in Shopify admin, and the interactions endpoint saved in the Discord Developer Portal all point at the old address. Every restart means opening three dashboards and pasting a new URL.

ProxVN solves this with a free account. A free account gives you fixed subdomains, so your webhook URL stays fixed across restarts. A free account currently allows 10 tunnels per account and 3 fixed subdomains per account. Anonymous use also works, but the URL changes, so use a fixed subdomain for webhook work.

## Step 1: Install ProxVN

ProxVN is a single static Go binary for Windows, macOS, Linux and Android (Termux), and it is open source and self-hostable on a VPS.

On Linux, macOS or Termux, install it with:

```
curl -fsSL https://proxvn.io.vn/install.sh | sh
```

On Windows, in PowerShell, run:

```
irm https://proxvn.io.vn/install.ps1 | iex
```

## Step 2: Run your local app

Start the app that will receive the webhooks. For this guide it listens on port 3000. A minimal example in Node.js looks like this:

```
node server.js
# your app listens on http://localhost:3000/webhooks
```

Keep that terminal open. Your handler should log the request body and headers, and return a ` 200 ` response quickly. Stripe, Shopify and Discord all retry or report failures when your endpoint is slow or returns an error, so a fast acknowledgement matters.

## Step 3: Expose it with one command

With a free account, start a tunnel with a fixed subdomain:

```
proxvn http 3000 --subdomain myapp
```

Without an account, the same command works anonymously:

```
proxvn http 3000
```

ProxVN prints a public HTTPS address such as ` https://myapp.proxvn.io.vn `. Your full webhook URL is that address plus your route, for example ` https://myapp.proxvn.io.vn/webhooks/stripe `.

Anonymous use works for webhooks because API and webhook traffic goes straight through: browser visitors see a safety warning page in anonymous mode, but API, webhook and curl traffic is not blocked by that page. A free account also removes the warning page entirely.

## Step 4: Paste the URL into each dashboard

### Stripe

In the Stripe Dashboard, go to Developers → Webhooks and add an endpoint with your URL, for example ` https://myapp.proxvn.io.vn/webhooks/stripe `. Choose the events you need, such as ` payment_intent.succeeded `, and copy the signing secret Stripe shows you. Verify signatures in your handler as usual — exposing your app through a tunnel does not change how Stripe signs its requests.

### Shopify

In Shopify admin, go to Settings → Notifications → Webhooks and create a webhook for the event you need, such as order creation, with the URL ` https://myapp.proxvn.io.vn/webhooks/shopify `. Shopify sends a JSON payload with HMAC headers; verify them exactly as you would in production.

### Discord

In the Discord Developer Portal, open your application and set the interactions endpoint URL to ` https://myapp.proxvn.io.vn/interactions `. Discord sends a signed request when a user runs a slash command, and your app must answer within a few seconds. Because the subdomain is fixed, you only set this URL once.

## Step 5: Trigger a test event

The easiest Stripe test uses the Stripe CLI. Forward a test event to your local app:

```
stripe trigger payment_intent.succeeded
```

Stripe sends a real signed event to your public URL, ProxVN forwards it to ` localhost:3000 `, and your handler runs. For Shopify, create a test order in a development store; for Discord, run a slash command in a test server.

## Step 6: Watch requests live in the Web Inspector

When something does not arrive, do not guess. Add the inspector flag when you start the tunnel — the Web Request Inspector runs at http://localhost:4300 when adding ` -L4300:localhost:4300 ` — and open it in your browser while you trigger events. You can see each incoming request, its headers and its body, and whether your app answered with ` 200 `.

If a request never appears in the inspector, the problem is upstream: check the URL saved in the dashboard and the event type you subscribed to. If it appears but your app errors, the problem is in your handler, not the tunnel.

## Tips that save time

- Keep one tunnel per app, and give each platform its own route (` /webhooks/stripe `, ` /webhooks/shopify `, ` /interactions `) so you can tell the traffic apart in the inspector.
- Verify signatures as usual for every platform. A tunnel forwards requests; it does not authenticate them for you.
- Use the fixed subdomain from your free account so restarts never break the URLs saved in the three dashboards.
- Return ` 200 ` fast, then do slow work — such as sending emails or updating a database — after you have acknowledged the webhook.

## Try it now

Start your app, run ` proxvn http 3000 --subdomain myapp `, paste the URL into Stripe, Shopify and Discord, and trigger your first real webhook today.

Get started at [ProxVN](https://proxvn.io.vn/) and see the installation options on the [download page](https://proxvn.io.vn/download).
