Moneybag

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:

  1. Log into Sandbox Dashboard
  2. Navigate to Developer SettingsAPI Keys
  3. Click Generate New Key
  4. Copy and store your API key securely

Important

API keys are shown only once. Store them securely immediately.

Environments:

EnvironmentBase URLDashboard
Sandboxhttps://sandbox.api.moneybag.com.bd/api/v2sandbox.moneybag.com.bd
Productionhttps://api.moneybag.com.bd/api/v2dashboard.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

📚 API Reference

Explore all available APIs and endpoints

View API Docs →

🔗 Webhooks

Get real-time payment notifications

Setup Webhooks →

💰 Subscriptions

Set up recurring payments

Learn Subscriptions →

❓ Support

Need help? Contact our team

Get Support →


Going to Production

Ready for production? Here's what you need:

  1. Complete Business Verification - Submit your business documents
  2. Get Production API Keys - Generate keys after approval
  3. Update Your Integration - Switch to production base URL
  4. Test Thoroughly - Verify all payment flows work correctly