API Reference
Complete SDK method and type reference for the Visa Acceptance embedded components.
The Visa Acceptance SDK exposes a single global object — VisaAcceptance — loaded via a <script> tag. All interaction happens through its methods.
// Initialize once
VisaAcceptance.init({ locale: 'en-US', theme: { preset: 'anet' } });
// Render components into containers
const instance = VisaAcceptance.render('transactions', '#container');
// Control instances
instance.updateTheme({ mode: 'dark' });
instance.destroy();SDK Methods
init, render, updateConfig, destroyAll, and all instance methods.
Components
Available components, lifecycle, and container requirements.
Configuration
GlobalConfig and MountConfig type references.
Authentication
OAuth, session, client-secret, and API key strategies.
Events
Event system, payload types, and framework integration.
State Machine
Component lifecycle states and transitions.
Error Handling
Error codes, retryable errors, and recovery patterns.