Quickstart API reference
ESPRESSO CASH CONNECT

Let your users pay in dollars.
Approved by them, every time.

Espresso Cash Connect links your website to your users' Espresso Cash wallets. Charge them and sell subscriptions in USDC on Solana. Every payment is approved by the user, in the Espresso Cash app or within a session they approved there. You never hold a key that can move their money.

🔗 ConnectOne button on your site. The user types their Espresso username and taps the matching number in the app. No QR, no password.
💳 Chargecharge("4.50"): approved in the app, or paid at once within a session the user started.
🔁 SubscriptionsMonthly plans the user approves once. The price and receiver are locked on-chain.
🎨 CreatorsPay a creator directly and keep your fee (0 to 50%), in one transaction.
📬 WebhooksSigned events for payments, sessions, subscriptions and disconnects.

How it works

Espresso Cash wallets are smart wallets on Solana, owned by a passkey (Face ID, fingerprint or device code). Your site talks to Espresso over HTTPS: your page through a small script, your backend with an API key.

Your page ── connect() ──▶ Espresso's window (@username → number → app) ──▶ connected
Your page ── charge("4.50") ──▶ approved in the app ──▶ paid (the user may also start a session)
Your page ── charge("2.00") ──▶ live session + Espresso's co-signer ──▶ paid at once
Your backend ── API key ──▶ server charges, subscriptions, creators
Espresso ── signed webhook ──▶ your backend (paid, declined, session ended, disconnected…)
TermWhat it means
ConnectionWho the user is to your site. Identity only: nothing is paid, nothing is added to the wallet. It lasts until the user disconnects (or your backend does).
One-shot chargeThe default. The user approves that one payment in the Espresso Cash app.
SessionA budget (USDC) and an end time the user gives your site while approving a payment. Charges within it are paid at once, if every co-signer rule passes.
Registered siteA site registered on connect.brij.fi/developers with a proven domain. It gets espresso_user_ids, the server API, webhooks, subscriptions and creators, and can show a verified badge.
Any https site can connect users and charge them from its page, without registering, by naming the wallet that receives the money. Register when you want your users' ids, your backend in the loop, or anything beyond page charges.

Quickstart

Connect a user and charge them from your page in a few lines.

  1. Add the script (served by Espresso, no build step):
    <script src="https://connect.brij.fi/sdk.js"></script>
    <script>
      const espresso = EspressoConnect({ siteName: 'My shop' });
    </script>
  2. Connect, from a click. connect() opens Espresso's window on connect.brij.fi. The user types their Espresso username (e.g. @alice). Their app gets a notification and shows two numbers; the window shows one of them. The user taps the same number in the app and confirms with Face ID or fingerprint. A wrong number cancels the request, so someone who types another person's username can't connect to them. The app shows your site's domain (and your name with a ✓ only once your domain is proven, see Register). The window shows "My shop wants to connect to your wallet"; connecting gives your site no access to their money.
    connectButton.onclick = async () => {
      if (!(await espresso.isConnected())) {
        const { walletAddress, connectionId } = await espresso.connect();
      }
    };
    The connection is kept in this browser (a non-extractable Ed25519 site key in IndexedDB that signs your page's requests). Call connect() from a click, or the browser blocks the window.
  3. Charge an amount in USDC:
    payButton.onclick = async () => {
      try {
        const result = await espresso.charge('4.50', {
          // recipient: 'So1ana…',  // required if your site isn't registered (else: your payout wallet)
          onApproval: ({ appUrl, payInBrowser }) => {
            showMessage('Approve it in the Espresso Cash app');
          },
        });
        // { signature, chargeId, approved, session: { budget, left, expiresAt } | null }
        showPaid(result.signature);
      } catch (e) {
        if (e.code === 'declined') showMessage('Not approved');
        else if (e.code !== 'cancelled') showMessage(e.message);
      }
    };
  4. Sessions come by themselves. When the user approves a charge in the app, they can also give your site a budget (e.g. 50 USDC for a day). charge() then resolves with session set, and later charges within it are paid at once, with no approval, as long as Espresso's rules allow. Pass { session: false } to never offer one.

SDK reference

CallWhat it does
EspressoConnect({ siteName, pollInterval })Creates the client. siteName (default document.title, up to 60 characters) is what the user sees until your site is registered, then your registered name is shown.
isConnected(){ walletAddress, connectionId } or null.
connect()Opens Espresso's window (from a click). Resolves with { walletAddress, connectionId }.
charge(amount, options)amount: a USDC string like "12.50" (up to 6 decimals). Options: recipient (default: your registered payout wallet), session (default true), onApproval, signal (an AbortSignal). Resolves with { signature, chargeId, approved, session }; session.budget and session.left are in base units (6 decimals).
linkProof(nonce)Proves this connection to your backend: see Link a user.
payInBrowser(chargeId)Deprecated: payments are approved in the Espresso Cash app. Opens Espresso's window on a charge waiting for approval, which asks the user to approve it on their phone (from a click). For a server charge, pass its espresso_charge_id.
disconnect()Forgets the connection in this browser. The user disconnects your site for good in the app or on connect.brij.fi.

Errors are Errors with a code: cancelled (the user closed the window), blocked (the browser blocked the window), declined (declined, or not approved within 15 minutes), not_connected, needs_app, network, session_key_missing, invalid_amount, or any API error code.

In-app browsers (Telegram, Instagram…) block Espresso's window: ask users to open your page in Chrome or Safari.

Your page knows the user is connected; your backend needs proof before it trusts that. The page signs a nonce your backend issued, and your backend has Espresso check it. You get the user's espresso_user_id: stable for your site, and different on every site, so sites can't link users together. Registered sites only.

  1. Your backend makes a random nonce (1 to 128 characters, no : or newline) and keeps it in the user's session.
  2. Your page signs it and sends the proof to your backend:
    const proof = await espresso.linkProof(nonce);   // { siteKey, nonce, timestamp, signature }
    await fetch('/api/espresso/link', { method: 'POST', headers: { 'Content-Type': 'application/json' },
                                        body: JSON.stringify(proof) });
  3. Your backend checks the nonce is the one it issued, then posts the proof, unchanged, within 5 minutes:
    const res = await fetch('https://api.brij.fi/connect/v2/server/connections/verify', {
      method: 'POST',
      headers: { Authorization: `Bearer ${process.env.ESPRESSO_API_KEY}`, 'Content-Type': 'application/json' },
      body: JSON.stringify({ siteKey: proof.siteKey, nonce: proof.nonce,
                             timestamp: proof.timestamp, signature: proof.signature }),
    });
    if (!res.ok) throw new Error('not linked');       // 403 permission_denied: bad or old proof
    const { espresso_user_id, connection_id, connected_at } = await res.json();
    // store espresso_user_id on your user

Espresso checks that the site key belongs to a live connection of your site and that it signed espresso-connect:link:v2:<the connection's origin>:<nonce>:<timestamp> less than 5 minutes ago. The nonce check is yours: it stops a proof from being replayed into another account.

You also get connection.created (with espresso_user_id) by webhook when a user connects, and connection.deleted when they disconnect.

Register your site

  1. Sign in on connect.brij.fi/developers with your Espresso Cash passkey (no wallet yet? get the Espresso Cash app). Your sites belong to that wallet.
  2. Register: a name, your website's https origin (e.g. https://myshop.com), and optionally a logo URL and a webhook URL. You get your API key (esk_…) and webhook secret (whsec_…), shown once: save them on your servers. Lost them? Make new ones on the same page (the old one stops at once).
  3. Prove your domain with either of these, then press Check my domain:
    # a file, served at https://myshop.com/.well-known/espresso.json
    {"site_id": "<your site id>", "token": "esp_…"}
    
    # or a DNS TXT record
    _espresso.myshop.com  TXT  "espresso-verify=esp_…"
    The page shows your site id and token. The file is fetched over https, without following redirects, up to 16 KB. Once proven, your site goes from PENDING to ACTIVE: the server API works, and users who connected from your site before get their espresso_user_id. The proof is checked again every day.
  4. Set your payout wallet: Pay me in this wallet makes the wallet you signed in with your payout wallet, where charges and subscriptions land. It must be one of your own wallets; nobody else sets it, and an API key can't change it.

The verified badge

Users see your name and logo with a ✓ while your site is ACTIVE, has a name and a logo, and its domain proof is less than 72 hours old. If a daily check fails, the badge drops (your site stays ACTIVE) until the proof is back.

What can be registered

Charge from your server

Your backend can charge a linked user directly: the money always goes to your payout wallet (or a creator you name). Amounts here are USDC decimal strings like "4.50".

curl https://api.brij.fi/connect/v2/server/charges \
  -H "Authorization: Bearer $ESPRESSO_API_KEY" -H "Content-Type: application/json" \
  -d '{"id":"order-9912","espresso_user_id":"eu_7Hq…","amount":"4.50","memo":"Day pass"}'
{ "charge": { "id": "order-9912", "espresso_charge_id": "6f1c…", "status": "awaiting_owner",
    "amount": "4.50", "recipient": "<your payout wallet>", "memo": "Day pass",
    "created_at": "2026-11-21T12:00:00Z", "expires_at": "2026-11-21T12:15:00Z" } }

Paying through a session from your server

Send a fresh sessionKey (an Ed25519 public key, base58, that your backend holds) with a charge. It is offered to the user with the approval; if they start a session with it, your later charges are prepared and paid with no approval:

import crypto from 'node:crypto';

const B58 = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz';
function base58(bytes) {
  let n = BigInt('0x' + (Buffer.from(bytes).toString('hex') || '0'));
  let s = '';
  while (n > 0n) { s = B58[Number(n % 58n)] + s; n /= 58n; }
  for (const b of bytes) { if (b !== 0) break; s = '1' + s; }
  return s;
}

// A fresh session key for this user: keep privateKey (encrypted) on your server.
export function newSessionKey() {
  const { publicKey, privateKey } = crypto.generateKeyPairSync('ed25519');
  const raw = Buffer.from(publicKey.export({ format: 'jwk' }).x, 'base64url');
  return { publicKey: base58(raw), privateKey };
}

// Sign a prepared charge's message (base64) with the session key.
export function signMessage(messageB64, privateKey) {
  return crypto.sign(null, Buffer.from(messageB64, 'base64'), privateKey).toString('base64');
}

// POST /connect/v2/server/charges { id, espresso_user_id, amount, sessionKey: key.publicKey }
// → status "prepared", with message and charge.session_key:
// POST /connect/v2/server/charges/{id}/sign { signature: signMessage(message, key.privateKey) }

A key is used once (session_key_used). A user has at most one session with your site: a session started from your page's charge() is held by that browser, not by your backend, so only sign when charge.session_key is a key you hold.

Statuses

StatusMeaning
preparedA live session can pay: sign message with session_key within 90 s.
sentPaid through the session, confirmed on-chain (signature).
awaiting_ownerWaiting for the user's approval, until expires_at (15 minutes).
approvedThe user approved and paid (signature; session set if they also started one).
declinedDeclined, or not answered in 15 minutes.
failedThe payment failed.

Paid means sent or approved: the charge.paid webhook says which. Page charges use the same statuses in upper case (SENT, AWAITING_OWNER…).

Sessions and the co-signer rules

A session is temporary spending power for one connection: a budget in USDC and an end time. It only starts when the user approves a real payment in the app and picks a budget (20, 50 or 100 USDC) and a duration (an hour, a day or 30 days) from the offer. Nothing is ever started behind their back.

When Espresso co-signs

Before co-signing any session charge, Espresso checks, in this order:

RuleIn plain words
session_not_liveThe session is live and its end time hasn't passed.
swig_instructionsThe transaction does nothing else with the wallet: no other wallet instruction than the session's own payment.
simulation_failedThe exact transaction simulates successfully.
wallet_outflowOnly USDC leaves the wallet: no SOL, no other token, no account closed, no owner or authority changed.
over_budgetThe USDC leaving is within what's left of the budget.
site_blockedYour site isn't blocked by Espresso.
velocityAt most 3 charges a minute per session.

If any rule fails, the charge isn't lost: it becomes a one-shot charge the user approves in the app (awaiting_owner). The session and blocked-site rules are checked again right before co-signing. A blocked site's live sessions end at once (session.ended, reason blocked).

Creators

Platforms (memberships, fan clubs, courses, tips) can have a server charge or a subscription pay a creator directly and keep a fee. Add two fields: payee (the creator's espresso_user_id) and fee_percent.

  1. The creator connects their Espresso Cash wallet to your site, like any user, and you link them.
  2. They confirm you may pay them:
    curl https://api.brij.fi/connect/v2/server/payees \
      -H "Authorization: Bearer $ESPRESSO_API_KEY" -H "Content-Type: application/json" \
      -d '{"espresso_user_id":"eu_anna…","name":"@anna"}'
    They get a push and confirm in the app within 24 h: payee.created (or payee.declined). Asking again re-sends a pending or expired request, or renames an active creator. Only the creator can make their wallet a payee, so a leaked API key can't redirect anyone's money.
  3. Charge for the creator:
    curl https://api.brij.fi/connect/v2/server/charges \
      -H "Authorization: Bearer $ESPRESSO_API_KEY" -H "Content-Type: application/json" \
      -d '{"id":"tip-881","espresso_user_id":"eu_fan42…","amount":"5.00","memo":"Tip for @anna",
           "payee":"eu_anna…","fee_percent":"20"}'
    The fan sees who is paid and your fee ($4.00 to @anna, $1.00 to you) and approves both transfers in one transaction. charge.paid comes only once both have landed.

Send money to your users

Prizes, cashback, refunds: send USDC yourself to the user's wallet. Get its address from the server API (wallet_address on connections) and send USDC on Solana from any wallet you control. No approval needed: it's just a transfer.

curl https://api.brij.fi/connect/v2/server/connections/eu_7Hq… \
  -H "Authorization: Bearer $ESPRESSO_API_KEY"
→ { "espresso_user_id": "eu_7Hq…", "connection_id": "…", "wallet_address": "9xQe…", "connected_at": "…", "human": {…} }

Subscriptions

Monthly plans that renew by themselves: the user approves once in the app, then is charged every 30 days, with no approval, until they or you cancel. Needs your payout wallet.

curl https://api.brij.fi/connect/v2/server/subscriptions \
  -H "Authorization: Bearer $ESPRESSO_API_KEY" -H "Content-Type: application/json" \
  -d '{"id":"sub-u831-pro","espresso_user_id":"eu_7Hq…","name":"Pro","amount":"9.99","period":"month"}'
{ "id": "sub-u831-pro", "espresso_user_id": "eu_7Hq…", "name": "Pro", "amount": "9.99", "period": "month",
  "status": "pending", "created_at": "2026-11-21T12:00:00Z", "expires_at": "2026-11-22T12:00:00Z" }
  1. The user gets a push and approves in the app within 24 h (else expired). You get subscription.created.
  2. The first period is charged as soon as the approval is on-chain: subscription.paid with first: true, paid_until and signature.
  3. Every 30 days it renews: subscription.paid again.
  4. A failed charge (e.g. not enough USDC) is retried daily: subscription.payment_failed, then past_due after 3 failures, and cancelled (unpaid) after 30.
  5. Cancelled by the user in the app (user), by you with DELETE /connect/v2/server/subscriptions/{id} (site), or by a disconnect either way (disconnected): subscription.cancelled. Nothing more is charged.

Give access while paid_until is in the future. That is the one field to check.

How it is enforced

Approving adds a role to the user's wallet that can only send the price, in USDC, to your payout wallet (or to the creator and your fee), at most once every ~28 days, enforced on-chain. Espresso only relays each renewal on time and pays the network fees. The price can't change: a new price is a new subscription the user approves.

Webhooks

Espresso POSTs JSON events to your site's webhook URL:

POST /espresso/webhooks
Content-Type: application/json
User-Agent: Espresso-Webhooks/1
Espresso-Signature: t=1763726400,v1=4de355d3…

{"id":"evt_1","type":"charge.paid","created_at":"2026-11-21T12:00:00Z","data":{"amount":"4.50"}}

Events

Amounts are USDC decimal strings. Every connection, charge, session, subscription and creator event carries espresso_user_id.

Typedata
connection.createdespresso_user_id, connection_id
connection.deletedespresso_user_id, by: user | site
charge.paidid (your id for a server charge, else Espresso's), espresso_user_id, amount, status (sent | approved), signature?, payee?, fee_percent?, session?: {id, budget}
charge.declinedid, espresso_user_id, amount, status: declined, reason: declined | expired
charge.failedid, espresso_user_id, amount, status: failed
session.startedespresso_user_id, session: {id, budget, expires_at}
session.endedespresso_user_id, session, reason: user | disconnected | blocked | expired
subscription.created, .paid, .payment_failed, .past_due, .cancelledid, espresso_user_id, name, amount, status, paid_until?; .paid: signature, first; .payment_failed / .past_due: reason (insufficient_funds | error), attempts; .cancelled: reason (user | site | disconnected | unpaid)
payee.createdespresso_user_id, name
payee.declinedespresso_user_id

charge.* and session.* cover page charges too. An approval nobody answered becomes charge.declined (expired), and a session past its end session.ended (expired), both within a minute.

Verify the signature

v1 is the hex HMAC-SHA256 of <t>.<raw body> with your webhook secret. Use the raw body bytes (not re-serialized JSON), compare in constant time, and reject an old t (each delivery attempt is signed afresh, so 5 minutes is safe). Each snippet below checks the test vector: secret whsec_test, t=1763726400, the body above → v1=4de355d35c7f9e8f72b544e9ba1f596dbc69294cbd9933a2ec283e675454e8dc.

import crypto from 'node:crypto';

export function verifyEspressoSignature(rawBody, header, secret, toleranceSeconds = 300, now = Date.now() / 1000) {
  const parts = Object.fromEntries(header.split(',').map((p) => {
    const i = p.indexOf('=');
    return [p.slice(0, i).trim(), p.slice(i + 1).trim()];
  }));
  const t = Number(parts.t);
  if (!Number.isInteger(t) || !/^[0-9a-f]{64}$/.test(parts.v1 || '')) return false;
  if (Math.abs(now - t) > toleranceSeconds) return false;
  const expected = crypto.createHmac('sha256', secret).update(`${t}.`).update(rawBody).digest();
  return crypto.timingSafeEqual(expected, Buffer.from(parts.v1, 'hex'));
}

// Test vector
const body = Buffer.from('{"id":"evt_1","type":"charge.paid","created_at":"2026-11-21T12:00:00Z","data":{"amount":"4.50"}}');
const header = 't=1763726400,v1=4de355d35c7f9e8f72b544e9ba1f596dbc69294cbd9933a2ec283e675454e8dc';
console.log(verifyEspressoSignature(body, header, 'whsec_test', 300, 1763726400)); // true

// Express: keep the raw body
// app.post('/espresso/webhooks', express.raw({ type: 'application/json' }), (req, res) => {
//   if (!verifyEspressoSignature(req.body, req.get('Espresso-Signature') || '', process.env.ESPRESSO_WEBHOOK_SECRET))
//     return res.sendStatus(400);
//   const event = JSON.parse(req.body);   // dedupe by event.id
//   res.sendStatus(200);
// });

Delivery and retries

API reference

Base URL https://api.brij.fi. Send Authorization: Bearer <API key> from your backend only. Only an ACTIVE site (domain proven) can call it: a PENDING one gets 422 site_not_verified. Bodies are JSON objects with only the documented fields (else 400 invalid_body), at most 64 KB. Amounts are USDC decimal strings ("4.50", 2 to 6 decimals); times RFC 3339 UTC. Every id is scoped to your site: another site's users and ids are unknown to you.

Connections

POST/connect/v2/server/connections/verify

{"siteKey", "nonce", "timestamp", "signature"} (from linkProof) → {"espresso_user_id", "connection_id", "wallet_address", "connected_at"}. 403 permission_denied if the proof isn't valid, recent or yours.

GET/connect/v2/server/connections?limit=

{"connections": [{"espresso_user_id", "connection_id", "wallet_address", "connected_at"}]}: live connections, newest first, limit up to 200.

GET/connect/v2/server/connections/{espresso_user_id}

The same, plus "human": {"level", "wallet_age_days", "has_transacted"}. level: new_wallet or verified_wallet (at least 7 days old and has transacted). wallet_address is the user's wallet: send them USDC there.

DELETE/connect/v2/server/connections/{espresso_user_id}

Disconnects the user: ends their session, the connection and their subscriptions → {"status": "disconnected"}.

Charges

POST/connect/v2/server/charges

{"id" (1-128), "espresso_user_id", "amount", "memo"? (up to 120), "sessionKey"? (base58), "payee"?, "fee_percent"?} → {"charge": ServerCharge, "message"?: "<base64>"}.

POST/connect/v2/server/charges/{id}/sign

{"signature": "<base64 Ed25519 of message>"} within 90 s → {"charge": ServerCharge}.

GET/connect/v2/server/charges/{id}

{"charge": ServerCharge, "message"?}.

ServerCharge = { "id", "espresso_charge_id", "status": "prepared|sent|failed|awaiting_owner|approved|declined",
  "amount", "recipient", "memo", "created_at", "signature"?, "payee"?, "fee_percent"?,
  "expires_at"?,                                   (awaiting_owner)
  "session_key"?,                                  (prepared: the key that signs message)
  "session"?: { "id", "session_key", "budget", "left", "expires_at" } }

Subscriptions

POST/connect/v2/server/subscriptions

{"id" (up to 100), "espresso_user_id", "name" (1-40), "amount", "period"?: "month", "payee"?, "fee_percent"?} → Subscription.

GET/connect/v2/server/subscriptions?espresso_user_id=

{"subscriptions": [Subscription]}.

GET/connect/v2/server/subscriptions/{id}  ·  DELETE/connect/v2/server/subscriptions/{id}

A subscription, with its charges; DELETE cancels it.

Subscription = { "id", "espresso_user_id", "name", "amount", "period": "month",
  "status": "pending|active|past_due|cancelled|expired", "created_at",
  "expires_at"?, "paid_until"?, "next_charge_at"?, "last_error"?,
  "cancelled_by"?: "user|site|disconnected|unpaid", "payee"?, "fee_percent"?,
  "charges"?: [{ "amount", "signature", "paid_until", "created_at" }] }

Creators

POST/connect/v2/server/payees

{"espresso_user_id", "name" (1-40)} → Payee.

GET/connect/v2/server/payees  ·  GET/connect/v2/server/payees/{espresso_user_id}

{"payees": [Payee]} / Payee, where Payee = {"espresso_user_id", "name", "status": "pending|active|declined", "created_at"}.

Your site

GET/connect/v2/server/site

{"id", "name", "logo_url", "origin", "hosts", "status": "active", "verified", "payout_wallet_set", "webhook_url"}.

Errors

HTTP status plus {"error": {"code": "…", "message": "…"}}.

HTTPCodeWhen
400invalid_<field>, invalid_bodyA field is missing or malformed (e.g. invalid_amount, invalid_fee_percent), or the body has unknown fields
401unauthenticatedMissing, wrong or disabled API key
403permission_deniedA link proof that isn't valid, recent or yours
404<resource>_not_foundNo such charge, subscription, payee… for your site
413body_too_largeBody over 64 KB
422site_not_verifiedYour domain isn't proven yet
422not_connectedThe user isn't connected to your site (or disconnected)
422payout_wallet_not_setServer charges and subscriptions need your payout wallet
422site_has_no_payout_walletA page charge without recipient, and no payout wallet to default to
422recipient_has_no_usdc_accountThe receiving wallet has no USDC account
422insufficient_fundsThe user doesn't have enough USDC
422too_many_approvalsThe user already has 3 charges waiting for approval
422session_key_usedThat session key was already used: make a fresh one
422site_blockedYour site is blocked
422payee_not_confirmed, invalid_payeeThe creator hasn't confirmed, or can't be paid (not connected, the payer, your payout wallet)
422needs_appA creator's charge, paid only in the app
422subscription_existsThe user already has a live subscription with that name
422host_taken, lookalike_domain, too_many_sitesRegistration refused (see Register)
429rate_limitedToo many requests: retry after Retry-After
500internalOur side: retry with the same id

Limits

WhatLimit
Server API10 requests a second per site (and 100 a second per IP); bodies up to 64 KB
Page requests (SDK)60 a minute per IP
Charges waiting for approval3 per user, 15 minutes each
Signing a prepared charge90 seconds
Session charges3 a minute per session; within the budget and before the end time
Link proofs5 minutes
Connect requests2 minutes once a username is entered; 3 requests per user per 10 minutes
Subscriptions0.01 to 1,000 USDC a month; approval within 24 h
Creator fee0 to 50% (fee_percent, 2 decimals)
Sites3 per owner, 10 registrations a day

Security & privacy

FAQ

Do my users need the Espresso Cash app?

Yes. The wallet lives in the Espresso Cash app (iOS and Android): users connect with their username and approve payments, sessions and subscriptions on their phone. Your site never handles keys or passwords.

Do I need to register?

Not to connect users and charge them from your page (name the recipient). Registering gives you espresso_user_ids, the server API, webhooks, subscriptions, creators and the verified badge. It's self-serve, on connect.brij.fi/developers.

Which currency and network?

USDC (digital dollars) on Solana mainnet. Users cash in and out to their local currency from the app. Test with small amounts like 0.01.

Does Apple or Google take a cut?

No. Purchases happen on your website; Espresso Cash is the wallet that pays, like a card would.

What happens if a session charge breaks a rule?

It isn't refused: it becomes a one-shot charge the user approves in the app, and your charge() (or server charge) waits for that approval.