Web Elements v2
Basis Theory Web Elements is a JavaScript library for securely collecting sensitive data in your web applications without that data ever touching your servers. Elements render as sandboxed iframes that communicate with the Basis Theory API directly.
Install
npm install --save @basis-theory/web-elements
Initialize
import { basistheory } from '@basis-theory/web-elements';
const bt = await basistheory('<PUBLIC_API_KEY>', { environment: 'test' });