Bankroll Integration Guide
Connect your application with Bankroll, a consumer fintech digital wallet platform that enables seamless financial management across web and mobile platforms.Overview
Bankroll integration provides:- Digital Wallet: Consumer-grade digital wallet functionality
- Multi-Platform: Unified experience across web and iOS
- Financial Management: Transaction tracking and balance management
- User Experience: Modern, intuitive wallet interface
- Real-time Updates: Instant balance and transaction notifications
Getting Started
1. Bankroll Account Setup
- Visit Bankroll Dashboard
- Create a merchant account
- Complete business verification
- Generate API credentials
2. Configure Environment Variables
Add your Bankroll credentials to your.env file:
3. Install SDK
4. Initialize Bankroll Client
Integration Flow
Creating a Wallet
Processing Payments
Wallet-to-Wallet Transfers
Webhook Integration
Setting Up Webhooks
Configure your webhook endpoint to receive Bankroll events:Webhook Events
| Event | Description |
|---|---|
wallet.created | New wallet created |
wallet.updated | Wallet information updated |
transaction.created | New transaction initiated |
transaction.completed | Transaction successfully completed |
transaction.failed | Transaction failed |
balance.updated | Wallet balance changed |
transfer.completed | Wallet-to-wallet transfer completed |
Frontend Integration
React Component Example
Supported Features
Payment Methods
- ✅ ACH Bank Transfers
- ✅ Debit Card Top-ups
- ✅ Wallet-to-Wallet Transfers
- ✅ Direct Deposit
- ✅ Bill Pay
Currencies
Currently supported: USD Coming soon: EUR, GBP, CADTesting
Sandbox Environment
Use test credentials for development:Test Scenarios
Test successful payment:Production Deployment
Pre-Launch Checklist
- ✅ Complete merchant verification
- ✅ Configure production API keys
- ✅ Set up webhook endpoints with SSL
- ✅ Test end-to-end payment flow
- ✅ Implement error handling and retries
- ✅ Set up monitoring and alerts
- ✅ Review security best practices
Production Configuration
Best Practices
Security
-
API Key Protection
- Never expose API keys in client-side code
- Use environment variables
- Rotate keys regularly
-
Webhook Validation
- Always verify webhook signatures
- Use HTTPS endpoints only
- Implement replay attack prevention
-
Data Handling
- Encrypt sensitive data at rest
- Use secure connections (HTTPS/TLS)
- Follow PCI compliance guidelines
Error Handling
Performance Optimization
- Cache wallet balances with short TTL
- Batch transaction queries when possible
- Use webhooks instead of polling
- Implement pagination for transaction lists
Monitoring
Key Metrics to Track
- Wallet creation success rate
- Transaction completion time
- Failed transaction reasons
- Webhook delivery success rate
- API response times
- Balance reconciliation accuracy
Logging Example
Troubleshooting
Common Issues
Wallet not found- Verify walletId is correct
- Check wallet hasn’t been deleted
- Ensure using correct environment (sandbox vs production)
- Check wallet balance is sufficient
- Verify transaction amount is within limits
- Review wallet status (active vs suspended)
- Confirm webhook URL is publicly accessible
- Verify SSL certificate is valid
- Check webhook signature validation
- Review Bankroll dashboard webhook logs
Rate Limits
- API Requests: 100 requests/minute
- Wallet Creation: 50 wallets/hour
- Transactions: 500 transactions/hour
Support & Resources
- Bankroll Documentation: docs.bankroll.io
- HedgePayments Support: [email protected]
- API Status: status.bankroll.io

