Brionic Payments
Developer API

A crypto payments API & webhooks

Build crypto payments into your own product. Create charges and invoices, manage customers, and react to on-chain payments in real time with a Stripe-style REST API and HMAC-signed webhooks, in XRP, XLM, USDC, and RLUSD.

# Create a $49.99 charge, paid in XRP
curl https://pay.brionicsecurity.com/api/v1/charges \
  -H "Authorization: Bearer sk_live_…" \
  -H "Content-Type: application/json" \
  -d '{"asset":"XRP","fiat_amount":"49.99","fiat_currency":"USD"}'
What you can build

One API for the whole flow

Charges & invoices

Create a charge or a branded invoice in one call, priced in crypto or fiat. Each gets a hosted pay page and QR.

Non-custodial settlement

Every charge and invoice is addressed to your own wallet. Payments settle straight to you on-chain, with no platform balance to withdraw from.

Signed webhooks

Get an HMAC-signed event the instant a charge is paid, underpaid, or expires. Verify in constant time, ignore replays.

Stripe-style design

Bearer keys, predictable JSON, standard status codes. If you've used Stripe, you already know your way around.

Test & live modes

Build against sk_test_ keys, then flip to sk_live_ for real on-chain settlement. Same API either way.

Idempotent & reliable

Webhook deliveries retry with exponential backoff, and payments dedupe by transaction so you never double-count.

Webhooks

Know the instant you're paid

Every delivery is signed so you can trust it came from us and wasn't tampered with.

Subscribe

Add an HTTPS endpoint and pick events: charge.completed, invoice.paid, payment.unverified, and more.

Verify

Each POST carries a Brionic-Signature header. Recompute the HMAC-SHA256 and compare in constant time.

React

Fulfil the order, email a receipt, or update your ledger the moment funds settle on-chain.

AI-native

Get paid from your AI assistant (MCP)

A Model Context Protocol server that turns the API into tools an AI assistant can call in plain language, Claude and Cursor among them. Invoice, charge, and manage customers in XRP, RLUSD, XLM & USDC, all settled on-chain.

Just ask

“Invoice [email protected] 50 RLUSD, net 7, and send it.” The assistant calls the right tool and hands back a pay link.

Read & act

Tools for charges, invoices, customers, events and pay-per-call (x402). Read-only or transactional, all gated by your API key.

Drop it in

Point Claude Desktop or Cursor at the server with your sk_… key. Runs locally; your key never leaves your machine.

// claude_desktop_config.json
{
  "mcpServers": {
    "brionic": {
      "command": "node",
      "args": ["/path/to/brionic-mcp/src/server.js"],
      "env": { "BRIONIC_API_KEY": "sk_test_…" }
    }
  }
}
Try it live

Pay-per-call (x402), in one command

No account, no API key, no sandbox. The endpoint below is live on XRPL mainnet: call it and you get an HTTP 402 Payment Required carrying real on-chain payment details. Pay the 0.001 XRP, retry with the payment id, and the resource unlocks. That is how an AI agent buys a single API call.

# 1 · Ask for the resource, get HTTP 402 + payment requirements
curl https://pay.brionicsecurity.com/x402/demo

#    → { "accepts": [{ "asset": "XRP", "amount": "0.001",
#           "payTo": "raXs73…", "destinationTag": 2309541978,
#           "paymentId": "ch_…", "payUrl": "…/pay/ch_…" }] }

# 2 · Pay it on-chain, or open payUrl to pay in a browser

# 3 · Retry with the payment id, the resource unlocks (HTTP 200)
curl -H "X-PAYMENT: ch_…" https://pay.brionicsecurity.com/x402/demo

Every payment carries our XRPL source tag, so the settlement is verifiable on any explorer. Create your own priced endpoints from the dashboard on the Gold & Diamond plans, settled to your own wallet.

Start building with crypto payments

Create an account, grab a test key, and make your first charge.