16 Commits

Author SHA1 Message Date
5c592ddb3e fix(web): point footer 'Open source' link at the real repo
The homepage/footer's GitHub link was hardcoded to
https://github.com/settlekit/settlekit, which 404s (that org/repo
doesn't exist). The real public repo is caelum0x/settlekit (confirmed
public via the API). Every visitor clicking "Open source · self-host
or use hosted cloud" has been hitting a 404 since this was added.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-25 03:40:34 +03:00
83c4149ee6 feat: add IndexNow key + submission script for settlekit-web
First IndexNow coverage for this product -- no key existed before.
Submits against the real live settlekit-web.onrender.com domain (see
app/robots.ts's comment for why, and the prior commit for the
settlekit.dev domain-mismatch finding).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-25 03:36:36 +03:00
3c4479a60a feat(web): add robots.txt + sitemap.xml to settlekit-web
Both were a genuine 404 on the live site (checked via curl against
settlekit-web.onrender.com, the real current deployment) -- the Next app
had no app/robots.ts or app/sitemap.ts at all. Also found while checking
this: settlekit.dev (the domain hardcoded as metadataBase in layout.tsx,
and referenced in every og:image/canonical tag) is not actually serving
this app -- it 200s with a different, stale title ("SettleKit - Settlement
Engine for Payment Processors", Last-Modified Aug 28) on an account this
environment's Cloudflare token has no zone access to. That DNS/deployment
cutover is a real, confirmed owner-only blocker (same shape as the
previously-flagged Render env-var cutover in plans/settlekit.md), not
something fixed here.

Resolves SITE_URL from RENDER_EXTERNAL_URL (set automatically by Render)
so robots.txt/sitemap.xml are correct on the actual live onrender.com URL
right now, and will self-correct once settlekit.dev is cut over.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-25 03:32:43 +03:00
a2e15ddc51 feat(web): lead with the merchant pain point: accept USDC payments with no card fees
Hero, title and meta now name what merchants search for (accept USDC payments,
no card fees, no chargebacks) and the signup button says what it does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 06:40:49 +03:00
40f90f1c5a feat: webhook event log with resend, test events, secret rotation and auto-disable (G8)
Every seller webhook delivery now keeps an attempt log (status code,
error, time, next retry) in the worker queue (Postgres) or in memory.
New routes: GET /v1/webhooks/deliveries(/:id), POST
/v1/webhooks/events/:id/resend, POST /v1/webhooks/endpoints/:id/test
(signed webhook.test event), rotate-secret with a 0-168h grace window
(both secrets sign as two v1 values, verified by @settlekit/webhooks, the
TS/Python/Go/Rust SDKs and the WooCommerce plugin), and disable/enable.
The worker retries on a 1m..6h exponential schedule instead of every tick,
signs with the live endpoint secret, skips disabled endpoints and
auto-disables one after 100 failed attempts in a row
(WEBHOOK_DISABLE_AFTER_FAILURES). Outbound requests get a 10s timeout.
The dashboard Webhooks page shows the event log with Resend and endpoint
actions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 05:34:39 +03:00
f1647a5a81 feat: embeddable checkout overlay (embed.js) with allow-listed success callback (G6, part 1)
apps/checkout/public/embed.js opens a payment link, checkout or invoice
from the same checkout origin in an overlay iframe on any site; links
marked data-settlekit-checkout bind automatically, SettleKit.open() is
available from code, and there is an open-in-new-tab fallback for
wallets that block iframes. The success page posts settlekit:success
only to a site the seller listed under Settings > Embedding
(org embedOrigins, validated https origins), and embed.js only accepts
messages from its checkout frame. Payment requests gain sendEmail and
successUrl so store plugins can redirect buyers and bring them back.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 04:52:19 +03:00
e0caf4bace feat: monthly platform fee statements with plan limits after grace (G1)
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>
2026-09-30 03:50:08 +03:00
61ce1686ff feat(web): SaaS integration guide at /docs/integrate, with email-based entitlement checks
- /docs/integrate: payment link, embeddable button, server-opened sessions
  with a return URL, Node webhook signature verification with the event list
  and a sample payload, and checking access through the entitlement API.
- api: /v1/entitlements and /v1/entitlements/verify accept the buyer's email
  and are scoped to the caller's organization.
- checkout: confirmed buyers are recorded as customers (email, GitHub,
  Discord, wallet) so sellers can check access by email; receipts and
  subscriptions offer "Continue to <seller>" when the link carried a successUrl.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 21:39:36 +03:00
39b29903b2 fix(pricing): default platform fee to 1% with no fixed fee to match the landing page
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>
2026-09-29 21:11:28 +03:00
ee1b528bfa feat(web): stablecoins-on-every-chain landing and live /proof page
Landing: no-merchant-of-record headline, founder story, eight-chain grid
with honest labels (Robinhood USDG, Tempo USDC.e bridged, Zcash
transparent ZEC), how it works, agent payments (x402, MPP), simple
pricing from one config constant, CTA into sign-up and guided setup.
/proof lists confirmed payments from the public API with explorer links,
per-network totals, labelled agent purchases and testnet separated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 20:52:59 +03:00
5d4ff5d4b8 chore: move runtime to Node 22 (required by @nktkas/hyperliquid)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 19:20:13 +03:00
d364fc9c19 fix(vercel): pin Node 20 for deploys; clearer Web Crypto error
- Root cause: isomorphic ids.ts uses globalThis.crypto (a global only in Node 20+, per engines.node>=20). A Vercel project building on Node 18 has no global crypto, so any page generating an id at build time throws and the deploy fails.
- Add .node-version=20 to repo root + every app (Vercel reads it from each app's Root Directory) so deploys use Node 20.
- ids.ts: resolve Web Crypto lazily with an actionable error instead of a cryptic undefined access — still browser-safe (no node:crypto import).
- 1304 tests / 213 suites, typecheck + full build green.
2026-06-21 00:45:43 +03:00
884ba52a36 chore(marketplace): move dev/start port 3002 -> 3011 (avoid admin collision); update web marketplace-url refs 2026-06-21 00:38:10 +03:00
pextacy
bcd51b5829 feat(ui): "Statement" greenbar-ledger frontend redesign
Replace the dark blue→purple gradient SaaS look across all 7 apps with a
gradient-free settlement-ledger identity grounded in what SettleKit does:
reconcile money to the cent.

- Palette: greenbar ledger paper + ink, with accounting semantics
  (credit-green / debit-red / ink-blue seal). No gradients or glows.
- Type: Archivo (display/body) + IBM Plex Mono carrying every number,
  label and section reference; loaded via next/font in each app layout.
- Signature: apps/web hero is a live settlement statement — debit/credit
  line items printing in sequentially with a rotated "SETTLED" stamp.
- apps/web fully rebuilt (globals, layout, components, pages); dashboard,
  portal, marketplace, admin, checkout, docs rethemed by flipping :root
  token values (component JSX untouched); shared packages/ui/theme.css
  moved to the same system.

All 7 apps + @settlekit/ui build clean.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-19 22:35:42 +03:00
3853551433 asad 2026-06-17 02:09:36 +03:00
3220b85c57 feat: product expansion — marketing site, customer portal, coupons + invoices
- apps/web: public marketing site (Next.js) — hero/§34, what-you-can-sell grid,
  how-it-works, dev tools, marketplace teaser, /pricing (§32 tiers), /use-cases (§29).
- apps/portal: customer portal (Next.js, §31) — per-customer overview, purchases/
  receipts, license keys, api keys, github/discord access (+re-check), subscriptions,
  downloads; anchored on the universal entitlements layer.
- packages/coupons: real discount engine (percent/amount/free-trial, window, expiry,
  max + per-customer redemptions, min-subtotal, product scoping), bigint USDC math,
  CouponStore + service.
- packages/invoices: real invoicing (line items, discount, @settlekit/tax, statuses,
  HTML/text render), fixed float bug, InvoiceStore + service.
- apps/api: /v1/coupons + /v1/invoices routes wired into context + app.
- apps/dashboard: Coupons + Invoices pages + nav + client methods.

All package + backend builds 0 TS errors; web/portal/dashboard typecheck clean;
590 tests pass (two redesigned coupon/invoice tests updated to the new API).
2026-06-15 12:25:58 +03:00