Frame
Entry point for the Frame browser SDK. Construct an instance with Frame.init — the constructor is internal and depends on initialized subsystems (Evervault, Fingerprint, Sift, session). All public surface (createElement, confirmCardPayment, paymentRequest, cardTheme) hangs off the instance returned by Frame.init.
For onboarding and Terms of Service flows that do not require the full runtime, use the static helpers Frame.createOnboarding and Frame.createTermsOfService.
EXAMPLE
import Frame from '@framepayments/frame-js';
const frame = await Frame.init('pk_test_...');
const card = await frame.createElement('card');
card.mount('#card-container');
Properties
versionstring
static The frame-js package version. Injected at build time.