Getting Started with BillaBear
BillaBear is a comprehensive billing and subscription management system designed to simplify your billing operations. It integrates with Stripe for payment processing and provides tools for managing customers, subscriptions, and invoices.
Support
If you encounter any difficulties while setting up or using BillaBear, please reach out for assistance.
You can get support from:
Installation Options
BillaBear offers multiple installation methods to suit your environment. Choose the option that best fits your needs:
Docker Compose (Recommended for Local Development)
- Ensure you have Docker Compose installed on your system
- Clone the hosting repository:
git clone https://github.com/billabear/hosting-docker-compose.git billabear
- Navigate to the directory:
cd billabear
- Edit the
.env
file to configure your environment:nano .env
- Start the containers:
docker compose up -d
DigitalOcean App Platform (Recommended for Production)
- Click the "Deploy to DigitalOcean" button in the installation documentation
- Click "Next" on the Resources screen
- Click "Edit" on Global Environment Variables
- Enter your Stripe API credentials (see "Connecting to Stripe" section below)
- Click "Save"
- Click "Next" on Environment Variables
- Click "Next" on Info
- Click "Create Resources"
For a visual guide, watch the deployment demonstration video.
Initial Setup
After installation, BillaBear automatically handles database creation. When you first access the application, you'll be presented with a setup form to create your initial administrator account:
- Access the BillaBear application in your browser
- Complete the setup form with your administrator details:
- Name
- Password
- Submit the form to create your account and complete the initial setup
Connecting to Stripe
BillaBear requires Stripe for payment processing. Follow these steps to connect your Stripe account:
Setting Up Stripe API Keys
- Log in to your Stripe Dashboard
- Create a new secret key or use an existing one
- Copy the secret key and add it to your environment as
STRIPE_PRIVATE_API_KEY
- Copy the publishable key and add it to your environment as
STRIPE_PUBLIC_API_KEY
Importing Existing Stripe Data
If you're migrating from Stripe to BillaBear, you can import your existing data:
- Log in to BillaBear as an administrator
- Click "Settings" in the navigation menu
- Click "Stripe" in the settings menu
- Click "Start" to begin the import process
- Click "View" to monitor the import progress
The import process follows this order:
- Customers
- Products
- Prices
- Subscriptions
- Payments
- Refunds
- Charge Backs
Configuring Email
BillaBear uses Symfony Mailer for sending emails. Configure your email settings using the MAILER_DSN
environment variable:
MAILER_DSN=smtp://user:pass@smtp.example.com:port
Common email providers:
- Gmail:
smtp://username:password@gmail
- Mailgun:
mailgun://KEY:DOMAIN@default
- SendGrid:
sendgrid://KEY@default
For more information on Symfony Mailer DSN formats, refer to the Symfony documentation.
Additional Configuration
BillaBear can be further configured using environment variables:
Variable | Description |
---|---|
APP_SECRET | A unique string for security (required) |
DATABASE_URL | Database connection string |
MESSENGER_TRANSPORT_DSN | Background processing configuration |
ROLLBAR_ENABLED | Enable/disable Rollbar error logging |
ROLLBAR_API_KEY | Rollbar API key |
ROLLBAR_ENV | Environment name for Rollbar |
For a complete list of environment variables, see the Environment Variables documentation.
Setting Up Integrations
BillaBear supports integration with various third-party services:
Xero (Accounting)
Configure Xero integration using these environment variables:
XERO_CLIENT_ID
: Your Xero App's client IDXERO_CLIENT_SECRET
: Your Xero App's client secretXERO_CLIENT_REDIRECT_URI
: The redirect URL for OAuth
HubSpot (CRM)
Configure HubSpot integration using these environment variables:
HUBSPOT_APP_ID
: Your HubSpot App IDHUBSPOT_CLIENT_ID
: Your HubSpot App's client IDHUBSPOT_CLIENT_SECRET
: Your HubSpot App's client secretHUBSPOT_REDIRECT_URI
: The redirect URL for OAuth
Next Steps
After completing the initial setup, you can:
- Create products and pricing plans
- Set up subscription schedules
- Configure invoice templates
- Add customers and subscriptions
For detailed information on using BillaBear's features, refer to the User Documentation.
Request New Features
If you need functionality that isn't currently available in BillaBear, you can request new features via: