Getting Started
Start accepting payments with Moneybag in minutes. Follow these simple steps to get started
Step 1: Create Sandbox Account
Get started with a free sandbox account for testing - no approval needed!
🚀
Create Your Sandbox Account
Test your integration safely without real transactions
Create Sandbox Account
Step 2: Get Your API Key
After creating your account:
- Log into Sandbox Dashboard
- Navigate to Developer Settings → API Keys
- Click Generate New Key
- Copy and store your API key securely
Important
API keys are shown only once. Store them securely immediately.
Environments:
| Environment | Base URL | Dashboard |
|---|---|---|
| Sandbox | https://sandbox.api.moneybag.com.bd/api/v2 | sandbox.moneybag.com.bd |
| Production | https://api.moneybag.com.bd/api/v2 | dashboard.moneybag.com.bd |
Step 3: Make Your First Request
Test your integration with the Checkout API:
curl -X POST https://sandbox.api.moneybag.com.bd/api/v2/payments/checkout \
-H "X-Merchant-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"order_id": "TEST_001",
"order_amount": 100.00,
"currency": "BDT",
"success_url": "https://yoursite.com/success",
"cancel_url": "https://yoursite.com/cancel",
"fail_url": "https://yoursite.com/fail",
"customer": {
"name": "John Doe",
"email": "john@example.com",
"phone": "+8801700000000"
}
}'Response:
{
"success": true,
"data": {
"checkout_url": "https://checkout.moneybag.com.bd/pay/...",
"session_id": "sess_...",
"expires_at": "2025-12-01T12:00:00Z"
}
}Redirect your customer to the checkout_url to complete payment.
Next Steps
Going to Production
Ready for production? Here's what you need:
- Complete Business Verification - Submit your business documents
- Get Production API Keys - Generate keys after approval
- Update Your Integration - Switch to production base URL
- Test Thoroughly - Verify all payment flows work correctly