Merchants can publish a store (slug, title, tagline, https logo, accent
colour, search description, optional custom domain) through settings or
the dashboard. The checkout app serves it at /store/<slug> with SEO and
Open Graph metadata, listing active products (invoice products hidden)
that each open their payment link, and a middleware rewrites '/' on a
merchant's custom domain to its store when CHECKOUT_PRIMARY_HOSTS is set.
Slugs and domains are unique; public data at /v1/public/stores. Carts of
several products stay out of scope because hosted checkout fulfils one
product per session.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GET /v1/merchant/offramp builds sell links for Transak, MoonPay (signed
server-side with the secret key) and Ramp with the amount, network and
the merchant's own receiving wallet prefilled. SettleKit takes no
custody; partners appear only once the owner configures their keys
(TRANSAK_API_KEY, MOONPAY_PUBLISHABLE_KEY/MOONPAY_SECRET_KEY,
RAMP_HOST_API_KEY). The dashboard Balances page gets a Cash out action per
mainnet network.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Security fix plus team access. Before this change any valid API key,
including access keys the delivery system hands to BUYERS, authenticated
as the merchant on the whole management API, and GET /v1/api-keys listed
every organization's keys. Now only platform keys (issued at sign-up or
via POST /v1/api-keys/platform, marked with the platform product id) can
call the API, and each request needs its resource scope
(<resource>:read|write, write implies read; platform:admin or * for
full access), answered with 403 and details.requiredScope otherwise.
Keys cannot mint broader keys, customer keys cannot carry management
scopes, key listing is tenant-scoped and keys can be revoked by id.
Dashboard sessions get team roles (owner, admin, developer, support,
viewer) mapped to scopes. /v1/team manages members and email
invitations (packages/invitations, token hash only, 7-day expiry);
/v1/auth/invitations/accept joins the org and creates the account. The
last owner is protected and only owners grant owner. Dashboard: Team
page, invite accept page, and an API keys page that creates restricted
keys and shows the secret once.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Prices can now be set in EUR, GBP and other ECB reference currencies
(displayCurrency + displayAmount, or currency on quick products). Each
checkout converts them to USDC at the live rate from a frankfurter
service (MIT, FX_RATES_URL), rounded half-up to the cent with exact
bigint math, and locks the quote on the session (fxQuote) until it
expires, so onchain verification expects exactly the quoted USDC. Promo,
tax, receipts and the hosted checkout lines use the locked rate; the
payment link page shows the fiat price and today's USDC amount. Missing
or implausible rates fail closed (503); fiat subscriptions and mixed
fiat currencies are refused. Dashboard product form gets a currency
picker.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sellers can turn on checkout tax in settings (label, own country and tax
ID, legal name, per-country rates, default rate, EU reverse charge).
Sessions add tax on top of the net price after any promo, so onchain
verification expects the tax-inclusive total. Buyers set billing country
and VAT ID via the API (billingCountry, vatId) or on the hosted checkout
until a payment is recorded; EU cross-border B2B with a VAT ID of the
right shape is zero-rated. Settled checkouts get a PDF receipt (pdfkit)
with the seller's tax ID, buyer country / VAT ID, tax rate and the
settlement transaction, linked from the success page, the receipt email
and the customer portal. packages/tax calculateTax is now used at
checkout.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
SettleKit's advertised per-payment fee was never collected because buyers
pay merchants' wallets directly. When PLATFORM_BILLING_ORG_ID is set, the
API now issues each merchant a monthly statement (confirmed payments x the
fee schedule) as an invoice from SettleKit's own org, paid through the
hosted checkout on the G2 payable-invoice path. Totals below the minimum
carry forward, test accounts are skipped, runs are idempotent and happen
automatically every six hours (or via POST /v1/billing/statements/run).
A statement unpaid past due + grace restricts new products to the free
plan limit from packages/pricing (402 with the pay link). Merchants see
accrued fees, statements and a Pay button on the Balances page.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- render.yaml deploys the five buyer/seller services on Node 22 with every
env var the new surfaces read (chains, routing, HyperCore, Zcash, x402/MPP,
onchain billing, service token, Discord, fee); Node builds install only the
app and its workspace deps (pnpm --filter <app>...). Free plans everywhere
except the worker (Render has no free background workers: starter).
- API/worker Dockerfiles install filtered; the API runs migrations on boot
because preDeployCommand is paid-only.
- worker boots without GitHub App / Resend / Discord credentials: those
deliveries stay pending and emails are skipped with a warning.
- .env.example documents the service token, manage-link secret and Discord OAuth.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
DEFAULT_FEE_SCHEDULE in packages/platform-billing is the single source of truth;
.env.example documents how the API and web env mirror it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- @settlekit/hyperliquid createHyperCoreUsdSender: operator-signed usdSend
(EIP-712 via viem), submitted through the HyperCore client; the L1 hash is
read back from the operator ledger (action digest as a labelled fallback).
The API wires it as the HyperCore refund sender when HYPERCORE_ENABLED and
an operator key (HYPERCORE_REFUND_PRIVATE_KEY or the billing operator key)
are set. BillingNetwork is now PaymentNetwork; the renewal-invoice and
access-hook network casts are gone.
- Access hooks call queueDelivery on the first successful charge and when an
expired (suspended) subscription is paid again. API: runs the product's
delivery actions inline through the real handler registry and persists the
run (retryable via /v1/delivery-runs/:id/retry), minting the entitlement
first when needed. Worker: enqueues a pending run on the worker delivery
queue for the delivery-runner job. Both idempotent per charge payment id;
a delivery failure never undoes the charge.
- deliveryActionsFor moved into @settlekit/delivery (zod-free) and shared by
the API agent-payments path and the worker.
- Onchain billing routes use requireOwned / requireOwnedPayment: product
ownership on subscription create, linked core subscription ownership,
foreign customer ids refused on subscription and escrow create.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- PgX402NonceStore (x402_nonces, migration 0012): reserve is INSERT ... ON
CONFLICT DO NOTHING on the primary key, so one settle wins across replicas.
The API wires it whenever DATABASE_URL is set; otherwise the facilitator
falls back to the in-memory store and logs a boot warning. One store is
now shared by every per-environment facilitator part.
- allowedPayTo defaults to this deployment's own EVM receiving addresses
(X402_EVM_PAY_TO + X402_PAY_TO_<CHAIN>); an empty allowlist refuses every
recipient, and only X402_FACILITATOR_ALLOWED_PAY_TO=* opens the relayer.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When X402_FACILITATOR_ALLOWED_PAY_TO is unset, the API's facilitator only
settles to its configured EVM payTo addresses, so a leaked facilitator
token cannot spend relayer gas on third-party payments. Documents the
agent-payment env in .env.example.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
render.tameion.yaml provisions db, api, worker and operator-console with
every operator variable documented (secrets as sync: false, the console's
key sourced from the API bootstrap key); .env.example gains the operator
and console variables.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Honest labels: Robinhood Chain settles USDG, Tempo settles bridged USDC.e,
Arc is testnet only, Zcash is transparent (not shielded) and mainnet only.
Adds apps/checkout/.env.example, the checkout routes and OSS licenses, and
the next-waves composition plan.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
.env.example and render.yaml (api + worker) list SETTLEKIT_CHAIN_ENV,
ENABLED_EVM_CHAINS, per-chain RPC/NETWORK/MIN_CONFIRMATIONS, Solana and
Zcash settings; api/worker tsconfig reference @settlekit/chains and
@settlekit/zcash; the UI explorer map covers every PaymentNetwork.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>