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.Documentation Index
Fetch the complete documentation index at: https://docs.busha.io/llms.txt
Use this file to discover all available pages before exploring further.
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:Install the SDK
Busha Commerce SDK (commerce-js)
View the source code and release history on GitHub.
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:- Log in to your Busha Business account.
- Go to Settings → Developer Tools.
- Copy your Public Key (it starts with
pub_).

Test before going live
Before you switch to production:- Set
devMode: true. - Use your sandbox public key.
- Test a complete payment flow with a small amount.
- Confirm your
onSuccesscallback runs as expected. - Check that the payment appears in your Busha dashboard.
Configuration reference
Required settings
| Parameter | Type | Description |
|---|---|---|
public_key | string | Your Busha Business public key (starts with pub_) |
quote_amount | string | Amount to charge, for example 10000 |
quote_currency | string | Currency for the quoted amount, for example NGN |
source_currency | string | Asset the customer pays with, for example USDT |
target_currency | string | Currency the payment settles into |
onSuccess | function | Runs when the payment succeeds |
onClose | function | Runs when the checkout modal closes |
Useful optional settings
| Parameter | Type | Description |
|---|---|---|
meta.name | string | Customer or order name shown in your integration |
meta.email | string | Customer email for order context |
devMode | boolean | Set to true for sandbox testing |
reference | string | Your custom transaction reference |
callback_url | string | URL to receive payment notifications |
source | string | Source label for the payment, for example website |
source_id | string | Internal ID tied to the payment source in your app |
What’s Next?
- Accept Stablecoin with Payment Links - Use a hosted checkout when you do not want to build a website flow yet.
- Quick Start Guide - Set up your Busha Business account.