Paybridge
GatewaysKhalti

Installation

Install Khalti package

Khalti Installation

Install Package

npm install @paybridgejs/khalti

Or with other package managers:

pnpm add @paybridgejs/khalti
yarn add @paybridgejs/khalti

Get Your Credentials

  1. Go to Khalti Dashboard
  2. Create a merchant account
  3. Navigate to Settings → API Keys
  4. Copy your Secret Key and Public Key

Environment Setup

Create a .env.local file:

KHALTI_SECRET_KEY=your_khalti_secret_key
KHALTI_PUBLIC_KEY=your_khalti_public_key

⚠️ Keep your Secret Key private! Never commit it to version control.


Next: Configuration - Setup your Khalti client

On this page