Billwave
Get Started

Installation

Install the Billwave SDK

Installation

Install the Billwave SDK in your Node.js project. This guide covers SDK setup; provider configuration happens in the dashboard.

Package Manager

npm i @digvijay-x1/billwave

Configuration

Initialize the SDK with your API key:

import { Billwave } from "@digvijay-x1/billwave";

const billwave = new Billwave({
  secretKey: process.env.BILLWAVE_SECRET_KEY,
  // Optional: override the API URL (for self-hosted)
  // apiUrl: "https://api.billwave.example"
});

in .env

BILLWAVE_SECRET_KEY=billwave_sk_your_api_key_here

TypeScript

The SDK is written in TypeScript and includes full type definitions. No additional @types/* packages are needed.

import {
  Billwave,
  AttachResult,
  CheckResult,
  TrackResult,
} from "@digvijay-x1/billwave";

const billwave = new Billwave({ secretKey: "..." });

// All methods are fully typed
const result: AttachResult = await billwave.attach({
  customer: "user_123",
  product: "pro",
});

Next Steps

On this page

Ask about billwave

Ready

Start a new chat below.

Powered by Cull