Bitcoin Payments
In Just 5 Lines of Code
Aurora's RESTful API lets you integrate Bitcoin and Lightning Network payments into your application with minimal effort.
import requests
# Create a Lightning invoice
def create_invoice(api_key, amount, memo):
url = "https://aurora.mybuho.de/api/invoice"
headers = {
"Authorization": f"Bearer {api_key}",
"Content-Type": "application/json"
}
payload = {
"amount": amount,
"memo": memo,
"currency": "currency code",
"extra": {}
}
response = requests.post(url, headers=headers, json=payload)
return response.json()
# Example usage
api_key = "your_api_key"
invoice = create_invoice(api_key, 10000, "Product purchase")
print(f"Payment request: {invoice['invoice']['invoice']}")
print(f"Checking ID: {invoice['invoice']['id']}")
Powerful Features for Developers
Our API is designed to make Bitcoin and Lightning Network payments simple to integrate.
- Create BOLT11 invoices
- Support for multiple fiat currencies
- Check payment status
- Generate QR codes
- Generate Bitcoin addresses
- Track transaction confirmations
- Automatic payment verification
- Instant payment notifications
- Secure signature verification
- Automatic retries for failed deliveries
Simple API Endpoints
Our API is designed to be intuitive and easy to use, with clear endpoints for all your payment needs.
Lightning Network Endpoints
Create and manage Lightning Network invoices for instant Bitcoin payments.
Create a new lightning invoice
Get QR code for a lightning invoice by checking ID
Get the status of an Lightning invoice by checking ID
# Lightning Invoice Endpoints
POST /api/lightning/invoice/
Create a new lightning invoice
Request:
{
"amount": 10000,
"memo": "Product purchase",
"currency": "sat",
"extra": {}
}
Response:
{
"message": "Invoice created successfully",
"invoice": {
"payment_hash": "...",
"id": "...",
"invoice": "lnbc...",
"amount": "...",
"currency": "..."
}
}
GET /api/lightning/invoice/qr/{id}
Get QR code for a lightning invoice by checking ID
GET /api/lightning/invoice/status/{id}
Get the status of an Lightning invoice by checking ID
Embedded Invoice Form
Integrate Bitcoin Lightning payments with just a single line of code using our lightweight script-based widget.
Seamless Payment Integration
The Aurora Embedded Invoice Form is a lightweight, script-based Lightning payment widget that allows developers to quickly integrate Bitcoin Lightning payments into any website or web app.
Plug-and-Play Integration
Just add one <script> tag — no complex setup or extra libraries needed.
Instant Lightning Invoices
Automatically generates Bitcoin Lightning invoices with real-time data.
Customizable and Lightweight
Set currency (e.g., sats) and connect to any Aurora-compatible API endpoint.
Secure and Isolated
Your API key stays embedded in the script attributes; no full-page reloads or insecure redirects.
Live Payment Experience
The live widget provides a seamless payment flow embedded directly into your webpage or app.
Ideal for:
How It Works
Include a single <script> tag on your page and configure it with data attributes:
<script src="https://aurora.mybuho.de/static/js/payment-widget.js"
data-api-endpoint="https://aurora.mybuho.de/api/lightning/invoice/"
data-api-key="your-api-key"
data-currency="sat">
</script>
data-api-endpoint: URL to your Aurora-compatible invoice API
data-api-key: Your API key for authentication
data-currency: The desired currency unit (e.g., sat for sats)
Technical Highlights:
- No external dependencies (pure JavaScript)
- Minimal footprint for fast page loads
- Real-time payment status updates without page refresh
- Embeds cleanly into any HTML page
Integration in 3 Simple Steps
Get up and running with Aurora payments in minutes, not days.
Get API Keys
Get in contact with Aurora and get your API keys to query.
Integrate API
Add a few lines of code to your application to create invoices and handle payments.
Accept Payments
Start accepting Bitcoin and Lightning Network payments from customers worldwide.
✅Clear Value Proposition for Devs
Aurora API helps developers and businesses create Lightning and Bitcoin payment flows using just a few lines of code. Whether you're building a SaaS, mobile app, or indie tool or having e-commerce— Aurora lets you accept payments with full flexibility and minimal setup.
Key Benefits
- No Chargebacks - Bitcoin transactions are irreversible, eliminating the risk of fraudulent chargebacks
- Lower Transaction Fees - Save significantly on payment processing costs compared to traditional methods
- Global Reach - Accept payments from customers worldwide without currency conversion complications
- Future-Proof Technology - Stay ahead with cutting-edge payment technology for the future of finance