npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@boltpay/bolt-connect-sdk

v1.0.2

Published

Bolt Connect SDK enables marketplaces to onboard their end sellers and integrate with Bolt Connect for seamless payment processing. Provides end seller onboarding and information retrieval for marketplace platforms.

Readme

Bolt Connect SDK

npm version

The Bolt Connect SDK enables marketplaces to seamlessly onboard their sellers and integrate with Bolt Connect for seamless payment processing. This SDK provides two main functionalities:

  1. Seller Onboarding: Streamlined iframe-based onboarding process for marketplace sellers
  2. Seller Information Retrieval: API helpers to fetch onboarding status and merchant information for Bolt Connect integration

Features

  • 🚀 Seamless Onboarding: Full-screen iframe integration for seller onboarding
  • 🔒 Secure: Secure communication between SDK and Bolt's backend
  • 💾 Caching: Intelligent caching for API responses to improve performance
  • 🎯 TypeScript Support: Full TypeScript definitions included
  • 🔧 Configurable: Flexible configuration for both production and sandbox environments

Installation

Using npm

npm install @boltpay/bolt-connect-sdk

Using yarn

yarn add @boltpay/bolt-connect-sdk

Using pnpm

pnpm add @boltpay/bolt-connect-sdk

Using bun

bun add @boltpay/bolt-connect-sdk

Direct download from npm registry

You can also download the package directly from the npm registry:

  • Package info: https://registry.npmjs.org/@boltpay/bolt-connect-sdk

Quick Start

1. Import the SDK

import { Onboarding, CheckoutHelpers } from '@boltpay/bolt-connect-sdk'

2. Configure Onboarding

// Configure the onboarding with your credentials
Onboarding.configure(
  {
    publishableKey: 'your-publishable-key',
    marketplaceSubMerchantID: 'unique-seller-identifier-in-your-platform', // unique identifier for the seller in your platform
    isTestEnv: true, // (Optional) Set to true for sandbox
  },
  {
    onSuccess: () => {
      console.log('Onboarding completed successfully!')
      // Handle successful onboarding (e.g., redirect, show success message)
    },
    onFailure: payload => {
      console.error('Onboarding failed:', payload.message)
      // Handle onboarding failure (e.g., show error message)
    },
    // optional
    onNotify: payload => {
      console.log('Onboarding notification:', payload.message)
      // Handle notifications during onboarding process
    },
  }
)

3. Start Onboarding

// Start the onboarding process
const startOnboarding = async () => {
  try {
    // you can start displaying loading animation of your own
    await Onboarding.start()
    // The iframe will be displayed full-screen
  } catch (error) {
    console.error('Failed to start onboarding:', error)
  } finally {
    // you can stop displaying loading animation
  }
}

// Attach to a button click
document
  .getElementById('onboarding-button')
  ?.addEventListener('click', startOnboarding)

4. Get Seller Information

// Fetch seller information
const getSellerInfo = async () => {
  try {
    const sellerInfo = await CheckoutHelpers.getSellerInfo({
      publishableKey: 'your-publishable-key',
      marketplaceSubMerchantID: 'unique-seller-identifier-in-your-platform',
      isTestEnv: true, // (Optional) Set to true for sandbox
    })
  } catch (error) {
    console.error('Failed to fetch seller info:', error)
  }
}

API Reference

Onboarding

Onboarding.configure(clientProps, eventHandlers)

Configures the onboarding process with your credentials and event handlers.

Parameters:

  • clientProps (ClientProps):

    • publishableKey (string): Your Bolt publishable key
    • marketplaceSubMerchantID (string): Unique identifier of the seller in your platform
    • isTestEnv (boolean, optional): Set to true for sandbox environment, false for production (default: false)
  • eventHandlers (OnboardingCallbacks):

    • onSuccess? (() => void): Called when onboarding completes successfully
    • onFailure? ((payload: { message: string }) => void): Called when onboarding fails
    • onNotify? ((payload: { message: string }) => void): Called for notifications during onboarding

Onboarding.start(): Promise<void>

Starts the onboarding process by displaying the iframe full-screen.

Onboarding.end(): void

Closes the onboarding iframe and cleans up resources. In general, sellers have the option to exit the onboarding, but marketplace can forcefully end the session using this function.

CheckoutHelpers

CheckoutHelpers.getSellerInfo(params): Promise<SellerInfoResponse>

Fetches seller information including onboarding status.

Parameters:

  • params (GetSellerInfoParams):
    • publishableKey (string): Your Bolt publishable key
    • marketplaceSubMerchantID (string): Unique seller identifier in your platform
    • isTestEnv (boolean, optional): Set to true for sandbox environment (default: false)

Returns:

  • SellerInfoResponse:
    • publishableKey (string): The publishable key of the seller
    • onboardingStatus ('completed' | 'unconfigured' | 'under_review'): Current onboarding status of the seller with Bolt Connect

Environment Configuration

Production Environment

const config = {
  publishableKey: 'your-production-publishable-key',
  marketplaceSubMerchantID: 'unique-seller-identifier-in-your-platform',
  isTestEnv: false, // Production environment
}

Sandbox Environment

const config = {
  publishableKey: 'your-sandbox-publishable-key',
  marketplaceSubMerchantID: 'unique-seller-identifier-in-your-platform',
  isTestEnv: true, // Sandbox environment
}

Error Handling

The SDK provides comprehensive error handling:

try {
  await Onboarding.start()
} catch (error) {
  // Handle iframe creation/display errors
  console.error('Onboarding error:', error)
}

try {
  const sellerInfo = await CheckoutHelpers.getSellerInfo(params)
} catch (error) {
  // Handle API errors (network, authentication, etc.)
  console.error('API error:', error)
}

Browser Support

The SDK supports all modern browsers with ES6+ support:

  • Chrome 60+
  • Firefox 55+
  • Safari 12+
  • Edge 79+

Support

For support and questions:

Changelog

v1.0.0

  • Stable Release: Production-ready marketplace SDK
  • Seller Onboarding: Full-screen iframe integration with secure communication
  • Seller Information Retrieval: API helpers for retrieving seller information
  • TypeScript Support: Complete type definitions for all interfaces
  • Environment Support: Production and sandbox environment configuration
  • Error Handling: Comprehensive error handling and validation
  • Performance: Caching for API responses
  • Security: Origin validation and secure iframe communication