Skip to main content
Use the Busha Commerce SDK when you want customers to start a crypto payment flow from your website or web app. It gives you a ready-made checkout experience, so you can launch faster without building your own payment modal from scratch.
What You’ll Achieve:
  1. Install the Busha Commerce SDK.
  2. Add a pay button to your store or checkout page.
  3. Test the integration with your sandbox public key before going live.

Prerequisites

Before you begin, ensure you have:
  • A Busha Business account (from the Quick Start Guide).
  • Basic HTML and JavaScript knowledge.
  • A website or web application where you want the payment button to appear.

Live demo

Try the widget below to see the checkout flow before you integrate it:
The SDK gives you a hosted payment experience with currency conversion, multiple crypto payment options, and built-in payment confirmation handling.

Install the SDK

Busha Commerce SDK (commerce-js)

View the source code and release history on GitHub.
Choose one installation method: Option 1: CDN
Option 2: npm or yarn

Add the payment button

Use this example to launch the Busha checkout from your storefront:

Find your public key

Your public key is available in the Busha Business dashboard:
  1. Log in to your Busha Business account.
  2. Go to SettingsDeveloper Tools.
  3. Copy your Public Key (it starts with pub_).
Public key highlighted in settings
Use your sandbox public key for testing and your production public key for live payments.

Test before going live

Before you switch to production:
  1. Set devMode: true.
  2. Use your sandbox public key.
  3. Test a complete payment flow with a small amount.
  4. Confirm your onSuccess callback runs as expected.
  5. Check that the payment appears in your Busha dashboard.

Configuration reference

Required settings

Useful optional settings

What’s Next?