Payment Integration
Setting up payment methods for your Routstr provider
Payment Integration
This guide explains how to set up and manage payment methods for your Routstr provider node, allowing you to receive micropayments for your AI inference services.
Supported Payment Methods
Routstr supports the following payment methods:
- Lightning Network: Fast, low-fee Bitcoin payments
- Cashu Tokens: Anonymous ecash tokens
- API Keys: Prepaid credits for trusted users
Lightning Network Integration
Lightning Address Setup
The simplest way to receive Lightning payments is through a Lightning address:
You can get a Lightning address from services like:
LNbits Integration
For more control, you can use LNbits to handle Lightning payments:
Lightning Node Integration
For advanced users, connect directly to your Lightning node:
LND
Core Lightning (CLN)
Cashu Integration
Cashu is an anonymous ecash system that allows for completely private payments.
Basic Setup
Custom Mint
You can also run your own Cashu mint:
Prepaid API Keys
For trusted users or organizations, you can create prepaid API keys:
Payment Webhooks
You can set up webhooks to be notified of payments:
Payment Tracking
Viewing Payment History
Monitor your payments with the provider CLI:
To view details of a specific payment:
Payment Reports
Generate payment reports for accounting:
Advanced Payment Settings
Fee Management
Configure how fees are handled:
Payment Batching
For improved efficiency with small payments:
Multi-Currency Support
While Routstr primarily uses Bitcoin (sats), you can set display currencies:
Security Best Practices
- Secure your keys: Store Lightning and Cashu keys securely
- Regular backups: Back up payment data regularly
- Monitor activity: Set up alerts for unusual payment patterns
- Implement rate limits: Prevent payment-related DoS attacks
- Use HTTPS: Secure your payment endpoints with proper TLS