No gas, a flat 0.8%
Gasless stablecoin transfers at the protocol level: the customer pays exactly the price and no gas. You pay a flat 0.8%, taken in the same transaction. Settlement goes straight into your till's on-chain balance in under a second.
The Brisk Store Gateway is a headless payment gateway on Brisk's rails: create a checkout session, send the customer to a hosted pay page, and confirm settlement from the chain. No new wallet infrastructure, no crypto UX to build, no merchant fees.
One session, one 8-character code, three ways to learn it settled.
One truth: the settled transaction digest on Sui.
Gasless stablecoin transfers at the protocol level: the customer pays exactly the price and no gas. You pay a flat 0.8%, taken in the same transaction. Settlement goes straight into your till's on-chain balance in under a second.
A session is a single POST. Everything else — zkLogin (Google sign-in, no seed phrase), the pay UI, QR fallback — is hosted for you at /pay/<code>.
AI agents discover your open sessions by business name and pay them over MCP, within on-chain spending caps you're protected by. Same till, same webhook.
In the Brisk app, create your merchant profile (your business name is what shoppers' agents search by) and a till — your on-chain receiving address. Then sign in to the merchant dashboard with the same Google account and create an API key under Developers.
On WooCommerce? Download the Brisk Pay plugin from the same page, paste the key, save — that's the whole integration. Steps 2–4 are for custom stores.
One POST when your customer reaches the payment step:
POST https://api.briskpay.app/api/checkout/sessions
Authorization: Bearer sk_live_your-key-here
Content-Type: application/json
{
"amount": "24.99",
"currency": "EUR",
"tillId": "0x...your-till-id...",
"description": "Order #1042 — 2× widget",
"metadata": { "order_id": "1042" },
"successUrl": "https://yourstore.com/order/1042/complete",
"cancelUrl": "https://yourstore.com/checkout",
"expiresInSec": 3600
}
The key identifies your merchant — no ids in the body. Price in your store currency (amount as a decimal string + an ISO currency; USD and the ECB reference currencies) and Brisk converts to USDC at the daily ECB rate, rounding up, and records the rate on the session as metadata.brisk_fx. Or send an exact amountMicros in USDC micros (24990000 = $24.99) instead. Response:
{
"code": "aB3xK9zQ",
"url": ".../p/aB3xK9zQ",
"hosted_checkout_url": ".../pay/aB3xK9zQ",
"verify_url": ".../api/links/aB3xK9zQ/verify/<DIGEST>",
"status": "pending",
"amountMicros": 27040180,
"feeMicros": 216321,
"netMicros": 26823859,
"fx": { "amount": "24.99", "currency": "EUR", "usd_rate": 1.082, ... },
"expiresAt": "2026-09-25T14:32:00.000Z"
}
Redirect to hosted_checkout_url (or send url in an email / render it as a QR — the code is the invoice). The page handles Google sign-in, shows the amount, and pays USDC on Sui. On success it redirects to your successUrl with ?code=…&digest=… appended.
Call the verify endpoint with the digest from the redirect (or your webhook):
GET /api/links/aB3xK9zQ/verify/<digest>
→ { "verified": true, "status": "paid",
"amountMicros": 24990000, "digest": "..." }
This reads the Sui chain directly and confirms the transaction credited your payee for at least the session amount. It's the authoritative check — idempotent, safe to call repeatedly.
Merchants never trust a client report — every confirmation path ends at the same chain read.
The hosted page redirects to your success_url ~2.5 s after payment with ?code=&digest= appended. Verify immediately on page load — this is the fastest path to a confirmed order.
Set once for your whole store: PUT /api/checkout/webhook with your API key and {"url": "https://yourstore.com/hooks/brisk"} (or from the dashboard). You receive checkout.paid events carrying your session metadata, signed in the x-brisk-signature: t=<ms>,v1=<hex> header — HMAC-SHA256 of "<t>.<rawBody>" with your secret. Failed deliveries retry with backoff for 24 h; dedupe on the event id. POST /api/checkout/webhook/test sends a test event.
Prefer pull? GET /api/checkout/sessions/<code> with your API key returns status, digest, paidAt and your metadata; GET /api/checkout/sessions lists them. /verify/<digest> is the authoritative chain read. No webhook infrastructure required.
Trust model. A webhook is a trigger to verify, never the verification itself: it tells you that to check, and /verify tells you whether it settled. The webhook payload is chain-verified before it fires and carries verified: true plus amount_micros, fee_micros, net_micros, payee, merchant and your metadata — but confirm via /verify before shipping goods. One settled digest satisfies at most one session; replays are rejected server-side. A settlement also has to come from the customer who opened the session: the hosted page claims the session with the customer’s signed-in wallet before paying, and a transaction signed by anyone else (another customer’s payment, an unrelated transfer to your till) never settles it. /verify then answers verified: false with reason: "payer_mismatch" or "payer_not_claimed".
import crypto from "node:crypto";
export function verifyBriskWebhook(rawBody, header, secret) {
const m = /^t=(\d+),v1=([0-9a-f]{64})$/.exec(header ?? "");
if (!m) return false;
const [, t, v1] = m;
if (Math.abs(Date.now() - Number(t)) > 300_000) return false; // stale
const expected = crypto.createHmac("sha256", secret)
.update(`${t}.${rawBody}`).digest("hex");
return crypto.timingSafeEqual(Buffer.from(v1, "hex"), Buffer.from(expected...));
}
The webhook secret is shown exactly once — store it. Setting the URL again rotates it. Replay protection is on your side: reject any (t, v1) pair you've already accepted.
Every open session is discoverable and payable by AI agents running Brisk agent wallets — no extra work on your side.
An agent calls list_payment_links with your business name (or an exact session code) and sees your open sessions: amount, description, expiry.
pay_invoice_link_v2 pays a session by code with a required idempotency key — a retry can never double-pay. On-chain per-transaction and 24-hour caps bound every agent.
Sessions can only name a till or payee that belongs to the claimed merchant — a fake storefront cannot ride your business name into agent discovery.
Money lands in the same till as human payments, and your webhook fires the same way. You'll know an order came from an agent only if you put that in metadata — by design, it's just another customer.
Create an order for a seller and send the buyer to the hosted page. In one gasless transaction the seller, your platform fee and any extra recipients are paid straight into their own wallets — Brisk checks every leg on-chain before the order counts as paid.
In the dashboard open Marketplace, create your marketplace and its split rules (commission %, flat fee, per-seller overrides), then create an API key and a webhook. Sellers join with your marketplace ID, or you register them by wallet address.
POST https://api.briskpay.app/api/marketplace/v1/orders
Authorization: Bearer sk_live_your-key-here
Content-Type: application/json
{
"sellerId": "sel_...",
"amountMicros": 25000000,
"externalRef": "order-1001",
"successUrl": "https://shop.example/thanks"
}
The response lists the legs (seller remainder, platform fee, extras) and a hosted_checkout_url to redirect the buyer to. A buyer who is short on USDC can add funds by card via Coinbase without leaving the page.
Brisk sends marketplace.order.paid once every leg is confirmed on-chain, signed like checkout webhooks (x-brisk-signature, HMAC-SHA256 over t.body). Verify with verifyWebhook from @brisk/marketplace-client and dedupe on the event id.
Sellers are paid instantly into their own wallet and cash out to a bank through Coinbase. Full reference, split-rule details, the Node client and the testnet end-to-end test: MARKETPLACE.md.
A flat 0.8% per merchant payment: no setup or monthly fee, and no fee on payments under $1.25. Your customer pays exactly the price, with no gas. The hosted page sends the price minus the fee to your till and the fee to Brisk in one on-chain transaction, so what lands in your till is yours. Each session reports feeMicros and netMicros, and so do the webhook and the dashboard. If a payment arrives in full at your till instead (an AI agent, or an older app version), the fee is invoiced monthly; it is shown as feeStatus: "owed". Transfers between people are always free.
Every merchant call uses an API key (Authorization: Bearer sk_live_…) created in the dashboard. The key is bound to your merchant, so merchant, till and payee come from the key and the request body cannot override them. Keys are shown once, revocable instantly, and listed by their last four characters. Production deployments set REQUIRE_MERCHANT_KEY=1, so session creation is key-only.
WooCommerce today (classic and block checkout), with a plugin download in the dashboard. Any other stack works through the three calls above. Shopify only allows third-party payment methods through its approved payments-partner program, which is on the roadmap.
One amount per session (line-item pricing and subscriptions are future work). Sessions expire — default 24h, configurable up to 30 days. Refunds are manual today: send USDC back to the customer's address from your till sweep destination.
Sui testnet, USDC (0xa1ec7fc0…7e29::usdc::USDC) during the public beta. Mainnet is the same integration; the coin type and endpoints move.
A browser. The hosted page handles everything: Google sign-in creates a self-custodial zkLogin wallet (no seed phrase, no app install), and the payment is two taps. Customers with the Brisk app can also pay by tapping their phone (NFC) or scanning your QR.
The hosted page checks their wallet. If it can't cover the order, it offers Pay by card: Coinbase sells them exactly the missing USDC (card, Apple Pay or bank; Coinbase shows its fee), delivered to their own wallet, and the order is then paid automatically. You receive USDC as usual; no change to your integration.
Dashboard → Payouts → Cash out to your bank. Coinbase converts USDC to your currency and pays your bank account. You confirm the payout on Coinbase (a Coinbase account is required), then send the USDC from the dashboard with no network fee.