Node.js SDK
Node.js SDK
basis-theory-js
Considerations
Basis Theory Node.js SDK uses conventional camel case for most methods and converts these properties to snake case when sending requests to the API. One notable exception to this is the Tokenize method which uses snake case for the request body.
Getting Started
This SDK requires the use of an API Key. To create one, login into our Portal and create a new "Private" Application with the permissions you require.
Installation
- npm
- yarn
npm install --save @basis-theory/basis-theory-js
yarn add @basis-theory/basis-theory-js
Initialization
import { BasisTheory } from "@basis-theory/basis-theory-js";
const bt = await new BasisTheory().init("<API_KEY>");