Use Cases
- Wallet app letting users cash out crypto
- Marketplace vendor payouts
- P2P trading platform
- Gaming platform withdrawals to local currency
Basic Integration
Simple Button Integration
The quickest way to integrate the Off-Ramp widget is with a button that opens the widget in a new window:Iframe Integration
For a more embedded experience, use an iframe:Pre-filled Integration
Example: Sell 0.005 ETH for NGN
Example: Sell Bitcoin for Kenyan Shillings
Configuration Parameters
| Parameter | Required | Description |
|---|---|---|
| publicKey | Yes | Your Busha Public API Key |
| side | Yes | Must be “sell” for off-ramp |
| redirectUrl | Yes | URL to redirect after transaction setup |
| cryptoAsset | No | Cryptocurrency to sell (e.g., BTC, ETH, USDT) |
| network | No | Blockchain network (e.g., BTC, ETH, POLYGON) |
| fiatCurrency | No | Target fiat currency (NGN, KES) |
| cryptoAmount | No | Amount of crypto to sell |
| fiatAmount | No | Target fiat amount (ignores cryptoAmount if set) |
React Component Example
Dynamic URL Construction
Build the Off-Ramp URL on your server for better security:Complete Integration Flow
1
User Initiates Sell
User clicks “Sell Crypto” button in your app
2
Redirect to Off-Ramp Widget
Your app opens the Busha Off-Ramp widget with pre-filled parameters
3
User Configures Payout
User logs in to Busha, completes KYC if needed, and selects their payout
method (bank account or mobile money)
4
Redirect Back with Deposit Instructions
Busha redirects user back to your app with deposit address and amount
5
User Confirms and Sends Crypto
Your app displays the deposit instructions. User confirms and sends crypto
to the provided address
6
Busha Processes Payout
Once crypto is received, Busha processes the payout to the user’s selected
method
Learn More
- Off-Ramp Widget Overview - Understand how the widget works
- Integration Guide - Detailed integration steps
- Supported Currencies - See all supported assets
- Webhooks Setup - Monitor transactions in real-time
- Test Addresses - Get test crypto addresses for sandbox testing