Skip to main content

Node.js SDK

Node.js SDK

node-sdk

Installation

npm install --save @basis-theory/node-sdk

Initialization

BasisTheoryEnvironment values: Test, Us, Eu
import { BasisTheoryClient, BasisTheory } from "@basis-theory/node-sdk";

const client = new BasisTheoryClient({ apiKey: "YOUR_API_KEY", environment: BasisTheoryEnvironment.Test });