Developer Tools

Accept Bitcoin payments with a few lines of code.
Official SDKs, an embeddable button, and full API docs.

Get Started in 4 Steps

From zero to accepting Bitcoin — no bank approval needed.

1
Sign Up

Create a merchant account and grab your API key from the dashboard.

2
Install

Add the SDK for your language — or use the REST API directly.

3
Create Orders

One API call generates a Lightning invoice automatically.

4
Get Paid

Funds settle directly to your wallet. Non-custodial — we never touch your sats.

Official SDKs

Stripe-style interface. Zero lock-in. Full type support.

Node.js

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

Python

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

Ruby

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

Embed Button

No backend needed. Add a Bitcoin pay button to any website with one script tag.

  • Embedded overlay or redirect checkout flow
  • Amount mode (hardcode price) or Product mode (auto-fetch from dashboard)
  • Payment Links — shareable URLs, no code needed
  • Pre-fill customer info or let SatsRail collect it
  • Works on static sites, WordPress, Shopify — anything with HTML
Embed Docs →
<!-- 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>

Resources

API Reference

Full REST API docs with interactive examples and curl snippets.

API Docs →
Webhooks

Get notified when payments complete, orders update, or refunds process.

Webhook Guide →
Support

Stuck? Reach out and we'll help you integrate.

Contact Us →

Ready to accept Bitcoin?

Create a free account and start integrating in minutes. No bank approval. No credit checks.

Get Your API Key →