paypal-listen
v0.1.9
Published
Forward PayPal webhooks to your local development server
Maintainers
Readme
paypal-listen
Forward PayPal webhooks to your local development server.

Installation
npm install -g paypal-listenUsage
export PAYPAL_CLIENT_ID=your_client_id
export PAYPAL_CLIENT_SECRET=your_client_secret
paypal-listen --forward-to http://localhost:3000/api/webhooksOptions
| Option | Default | Description |
|--------|---------|-------------|
| --forward-to <url> | (required) | Local URL to forward webhooks to |
| --mode <mode> | sandbox | sandbox or live |
| --port <port> | 8787 | Local proxy port |
| --path <path> | /webhooks/paypal | Webhook endpoint path |
| --events <csv> | CHECKOUT.ORDER.APPROVED,PAYMENT.CAPTURE.COMPLETED | Events to subscribe to |
How it works
- Starts a local HTTP server
- Creates a Cloudflare tunnel to expose it publicly
- Registers a PayPal webhook pointing to the tunnel URL
- Forwards incoming webhooks to your local server
Development
bun install
bun run dev -- --forward-to http://localhost:3000