Accept Bitcoin payments with a few lines of code.
Official SDKs, an embeddable button, and full API docs.
Deep-dive guides for every part of the integration.
From zero to accepting Bitcoin — no bank approval needed.
Create a merchant account and grab your API key from the dashboard.
Add the SDK for your language — or use the REST API directly.
One API call generates a Lightning invoice automatically.
Funds settle directly to your wallet. Non-custodial — we never touch your sats.
Stripe-style interface. Zero lock-in. Full type support.
Zero dependencies. Works with Express, Next.js, Deno — anything that runs JavaScript.
npm install satsrail
import SatsRail from 'satsrail';
const sr = new SatsRail('sk_live_...');
const order = await sr.orders.create({
amount_usd: 50.00,
description: 'Online order #1234'
});
// order.lightning_invoice ready to display
Type hints included. Works with Django, Flask, FastAPI, or standalone scripts.
pip install satsrail
import satsrail
sr = satsrail.Client("sk_live_...")
order = sr.orders.create(
amount_usd=50.00,
description="Online order #1234"
)
# order.lightning_invoice ready to display
Zero dependencies. Pure net/http. Works with Rails, Sinatra, or plain Ruby.
gem install satsrail
require "satsrail"
SatsRail.api_key = "sk_live_..."
order = SatsRail::Order.create(
amount_usd: 50.00,
description: "Online order #1234"
)
# order.lightning_invoice ready to display
No backend needed. Add a Bitcoin pay button to any website with one script tag.
<!-- Amount mode -->
<script src="https://satsrail.com/js/pay.js"
data-key="pk_live_..."
data-amount="2500"
data-currency="usd"
data-mode="iframe">
</script>
<!-- Product mode -->
<script src="https://satsrail.com/js/pay.js"
data-product="prod_abc123"
data-key="pk_live_..."
data-mode="iframe">
</script>
Create a free account and start integrating in minutes. No bank approval. No credit checks.
Get Your API Key →