Use Cases
- E-commerce site accepting crypto payments
- Wallet app letting users buy crypto
- DeFi platform onboarding new users
- Gaming platform selling in-game crypto assets
Basic Integration
Simple Button Integration
The quickest way to integrate the On-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: Buy Bitcoin with 50,000 NGN
Example: Buy to Specific Wallet Address
Configuration Parameters
| Parameter | Required | Description |
|---|---|---|
| publicKey | Yes | Your Busha Public API Key |
| cryptoAsset | No | Cryptocurrency to buy (e.g., BTC, ETH, USDT) |
| network | No | Blockchain network (e.g., BTC, ERC20, POLYGON) |
| address | No | Pre-fill destination wallet address |
| fiatCurrency | No | Fiat currency (NGN, KES) |
| fiatAmount | No | Amount in fiat currency |
| cryptoAmount | No | Amount in crypto (ignored if fiatAmount is set) |
| redirectUrl | No | URL to redirect after transaction completion |
React Component Example
Dynamic URL Construction
Build the On-Ramp URL on your server for better security and flexibility:Complete Integration Flow
1
User Initiates Purchase
User clicks “Buy Crypto” button in your app
2
Redirect to On-Ramp Widget
Your app opens the Busha On-Ramp widget with pre-filled parameters
3
User Authentication
User logs in to Busha (or signs up), completes KYC if needed
4
User Reviews and Confirms
User reviews transaction details including rate and fees, then confirms the
purchase
5
User Selects Payment Method
User chooses their preferred payment method (bank transfer, mobile money,
etc.)
6
User Completes Payment
User completes the payment through their selected method
7
Busha Processes Purchase
Once payment is confirmed, Busha processes the crypto purchase and sends it
to the user’s wallet
Learn More
- On-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