Installation
paybridgenp and paybridge-np are available as aliases.
Authentication
paybridgenp login
Authenticate with your API key. You can find your keys in the dashboard under Settings → API Keys.
PAYBRIDGENP_API_KEY environment variable always takes priority over the saved config.
Config is stored at:
- macOS/Linux:
~/.config/paybridgenp/config.json - Windows:
%APPDATA%\paybridgenp\config.json
0600 permissions - readable only by you.
paybridgenp status
Show the current authentication state and API connection.
Payments
paybridgenp payments list
List recent payments in a table.
paybridgenp payments get <id>
Fetch a single payment with full detail.
Webhooks
paybridgenp webhooks list
List all registered webhook endpoints for the current project.
paybridgenp webhooks listen
Start a local HTTP server and expose it via an ngrok tunnel. Use this during development to receive real webhook events on your machine.
ngrok must be installed. Install it with
brew install ngrok or from ngrok.com.paybridgenp webhooks test <url>
Send a fake signed event to any URL to test your webhook handler.
Supported event types:
Testing
paybridgenp test
Create a real sandbox checkout session and open it in the browser. Complete a test payment end-to-end without writing any code.
Scaffolding
paybridgenp init
Interactively scaffold a starter project with working checkout and webhook routes.
What gets created:
Next.js (App Router)
Next.js (App Router)
Node.js
Node.js
Bare TypeScript
Bare TypeScript