Core TypeScript/JavaScript SDK for ZBD Ramp integration
The @zbdpay/ramp-ts package is the core TypeScript/JavaScript iframe wrapper for the ZBD Ramp widget that enables Bitcoin purchase interface for web applications.
const ramp = createRamp({ sessionToken: 'your-session-token',});// Mount to specific containerramp.mount('#my-container');// Unmount iframe (keeps instance alive)ramp.unmount();// Remount to different containerramp.mount('#another-container');// Clean up completelyramp.destroy();