[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-112697":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":12,"openIssues":13,"contributorsCount":13,"subscribersCount":13,"size":13,"stars1d":13,"stars7d":14,"stars30d":15,"stars90d":13,"forks30d":13,"starsTrendScore":16,"compositeScore":17,"rankGlobal":9,"rankLanguage":9,"license":18,"archived":19,"fork":19,"defaultBranch":20,"hasWiki":19,"hasPages":19,"topics":21,"createdAt":9,"pushedAt":22,"updatedAt":23,"readmeContent":24,"aiSummary":25,"trendingCount":13,"starSnapshotCount":13,"syncStatus":26,"lastSyncTime":27,"discoverSource":28},112697,"payment-processor","fiatdesk\u002Fpayment-processor","fiatdesk","Open-source stablecoin payment processing platform",null,"TypeScript",120,8,0,34,63,1,66.16,"Apache License 2.0",false,"main",[],"2026-11-10 05:29:34","2026-11-23 08:38:06","\u003Ch1 align=\"center\">\n  \u003Cpicture>\n    \u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"apps\u002Fdocs\u002Fsrc\u002Fassets\u002Fbrand\u002Ffiatdesk-logo-white.svg\">\n    \u003Cimg src=\"apps\u002Fdocs\u002Fsrc\u002Fassets\u002Fbrand\u002Ffiatdesk-logo-black.svg\" alt=\"FiatDesk\" width=\"320\">\n  \u003C\u002Fpicture>\n\u003C\u002Fh1>\n\n\u003Ch3 align=\"center\">Open-source stablecoin payment processing platform\u003C\u002Fh3>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\".\u002FLICENSE\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FLicense-Apache%202.0-blue.svg\" alt=\"License: Apache 2.0\">\u003C\u002Fa>\n  \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FSettlement-USDC%20on%20Ethereum-2775CA.svg\" alt=\"Settlement: USDC on Ethereum\">\n  \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FAPI-Stripe--compatible-635BFF.svg\" alt=\"API: Stripe-compatible\">\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"#quick-start\">Quick start\u003C\u002Fa> ·\n  \u003Ca href=\"#setup-guide\">Setup guide\u003C\u002Fa> ·\n  \u003Ca href=\"apps\u002Fdocs\">Documentation\u003C\u002Fa> ·\n  \u003Ca href=\"#a-familiar-api\">API\u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"docs\u002Fscreenshots\u002Fdashboard-home.webp\" alt=\"FiatDesk dashboard home with gross volume, available balance and overview charts\" width=\"900\">\n\u003C\u002Fp>\n\n---\n\n\u003C!-- prettier-ignore -->\n> [!NOTE]\n> FiatDesk's smart contracts (`PayoutBatch` and `Subscriptions`) have been audited, and FiatDesk is deployable on testnet (Sepolia).\n\nFiatDesk is a self-hosted payment processor for stablecoins. Run it for your own business, or as the payments layer of a marketplace: hosted checkout, payment links, recurring billing, connected seller accounts, payouts and webhooks, all settled in USDC on Ethereum.\n\n## Why FiatDesk\n\n- **You run it.** Deploy with Docker on your own servers. Your platform wallet's key never touches the server, so funds stay in your custody.\n- **A Stripe-compatible API.** Checkout Sessions, Payment Links, Customers, Subscriptions, Accounts, Transfers and Payouts, with the same object shapes, webhooks and idempotency model.\n- **Gas-free checkout for buyers.** Customers sign one USDC authorization (EIP-3009); your relayer submits it and pays the gas.\n- **Recurring billing on-chain.** Subscribers approve a capped allowance once, and renewals are collected each period without another signature.\n- **Batch payouts.** Pay many sellers in one transaction through the `PayoutBatch` contract, so they share the gas.\n- **No percentage fees.** FiatDesk takes no cut. Your only costs are Ethereum gas and your hosting.\n\n## Screenshots\n\nEvery screenshot comes from a running FiatDesk instance with demo data. Click one to open it at full resolution (2880×1800).\n\n### Payments\n\n\u003Ctable>\n  \u003Ctr>\n    \u003Ctd width=\"50%\" valign=\"top\">\n      \u003Ca href=\"docs\u002Fscreenshots\u002Fcheckout.webp\">\u003Cimg src=\"docs\u002Fscreenshots\u002Fcheckout.webp\" alt=\"Hosted checkout: Buyers connect a wallet and sign once to pay in USDC. Your relayer pays the gas.\">\u003C\u002Fa>\n      \u003Cbr>\u003Cb>Hosted checkout\u003C\u002Fb>\u003Cbr>Buyers connect a wallet and sign once to pay in USDC. Your relayer pays the gas.\n    \u003C\u002Ftd>\n    \u003Ctd width=\"50%\" valign=\"top\">\n      \u003Ca href=\"docs\u002Fscreenshots\u002Fdashboard-payment-links.webp\">\u003Cimg src=\"docs\u002Fscreenshots\u002Fdashboard-payment-links.webp\" alt=\"Payment links: Shareable links that open hosted checkout, with no code.\">\u003C\u002Fa>\n      \u003Cbr>\u003Cb>Payment links\u003C\u002Fb>\u003Cbr>Shareable links that open hosted checkout, with no code.\n    \u003C\u002Ftd>\n  \u003C\u002Ftr>\n  \u003Ctr>\n    \u003Ctd width=\"50%\" valign=\"top\">\n      \u003Ca href=\"docs\u002Fscreenshots\u002Fdashboard-products.webp\">\u003Cimg src=\"docs\u002Fscreenshots\u002Fdashboard-products.webp\" alt=\"Product catalog: Products with one-time and recurring USDC prices.\">\u003C\u002Fa>\n      \u003Cbr>\u003Cb>Product catalog\u003C\u002Fb>\u003Cbr>Products with one-time and recurring USDC prices.\n    \u003C\u002Ftd>\n    \u003Ctd width=\"50%\" valign=\"top\">\n      \u003Ca href=\"docs\u002Fscreenshots\u002Fdashboard-transactions.webp\">\u003Cimg src=\"docs\u002Fscreenshots\u002Fdashboard-transactions.webp\" alt=\"Transactions: Payments, payouts, top-ups and transfers, filterable and exportable.\">\u003C\u002Fa>\n      \u003Cbr>\u003Cb>Transactions\u003C\u002Fb>\u003Cbr>Payments, payouts, top-ups and transfers, filterable and exportable.\n    \u003C\u002Ftd>\n  \u003C\u002Ftr>\n\u003C\u002Ftable>\n\n### Billing\n\n\u003Ctable>\n  \u003Ctr>\n    \u003Ctd width=\"50%\" valign=\"top\">\n      \u003Ca href=\"docs\u002Fscreenshots\u002Fdashboard-subscriptions.webp\">\u003Cimg src=\"docs\u002Fscreenshots\u002Fdashboard-subscriptions.webp\" alt=\"Subscriptions: Monthly and yearly plans renewed on-chain without another signature.\">\u003C\u002Fa>\n      \u003Cbr>\u003Cb>Subscriptions\u003C\u002Fb>\u003Cbr>Monthly and yearly plans renewed on-chain without another signature.\n    \u003C\u002Ftd>\n    \u003Ctd width=\"50%\" valign=\"top\">\n      \u003Ca href=\"docs\u002Fscreenshots\u002Fdashboard-invoices.webp\">\u003Cimg src=\"docs\u002Fscreenshots\u002Fdashboard-invoices.webp\" alt=\"Invoices: Invoices created and paid by each billing cycle.\">\u003C\u002Fa>\n      \u003Cbr>\u003Cb>Invoices\u003C\u002Fb>\u003Cbr>Invoices created and paid by each billing cycle.\n    \u003C\u002Ftd>\n  \u003C\u002Ftr>\n  \u003Ctr>\n    \u003Ctd width=\"50%\" valign=\"top\">\n      \u003Ca href=\"docs\u002Fscreenshots\u002Fdashboard-customers.webp\">\u003Cimg src=\"docs\u002Fscreenshots\u002Fdashboard-customers.webp\" alt=\"Customers: Everyone who has paid you, with their contact details.\">\u003C\u002Fa>\n      \u003Cbr>\u003Cb>Customers\u003C\u002Fb>\u003Cbr>Everyone who has paid you, with their contact details.\n    \u003C\u002Ftd>\n    \u003Ctd width=\"50%\" valign=\"top\">\n      \u003Ca href=\"docs\u002Fscreenshots\u002Fdashboard-customer-detail.webp\">\u003Cimg src=\"docs\u002Fscreenshots\u002Fdashboard-customer-detail.webp\" alt=\"Customer detail: A customer's subscriptions, payments and invoices on one page.\">\u003C\u002Fa>\n      \u003Cbr>\u003Cb>Customer detail\u003C\u002Fb>\u003Cbr>A customer's subscriptions, payments and invoices on one page.\n    \u003C\u002Ftd>\n  \u003C\u002Ftr>\n\u003C\u002Ftable>\n\n### Marketplaces\n\n\u003Ctable>\n  \u003Ctr>\n    \u003Ctd width=\"50%\" valign=\"top\">\n      \u003Ca href=\"docs\u002Fscreenshots\u002Fdashboard-connected-accounts.webp\">\u003Cimg src=\"docs\u002Fscreenshots\u002Fdashboard-connected-accounts.webp\" alt=\"Connected accounts: Your sellers and their onboarding status.\">\u003C\u002Fa>\n      \u003Cbr>\u003Cb>Connected accounts\u003C\u002Fb>\u003Cbr>Your sellers and their onboarding status.\n    \u003C\u002Ftd>\n    \u003Ctd width=\"50%\" valign=\"top\">\n      \u003Ca href=\"docs\u002Fscreenshots\u002Fdashboard-connected-account-detail.webp\">\u003Cimg src=\"docs\u002Fscreenshots\u002Fdashboard-connected-account-detail.webp\" alt=\"Connected account detail: Balances, transfers, payouts, capabilities and identity checks for one seller.\">\u003C\u002Fa>\n      \u003Cbr>\u003Cb>Connected account detail\u003C\u002Fb>\u003Cbr>Balances, transfers, payouts, capabilities and identity checks for one seller.\n    \u003C\u002Ftd>\n  \u003C\u002Ftr>\n  \u003Ctr>\n    \u003Ctd width=\"50%\" valign=\"top\">\n      \u003Ca href=\"docs\u002Fscreenshots\u002Fseller-onboarding.webp\">\u003Cimg src=\"docs\u002Fscreenshots\u002Fseller-onboarding.webp\" alt=\"Seller onboarding: A hosted flow where sellers enter their details and connect a wallet.\">\u003C\u002Fa>\n      \u003Cbr>\u003Cb>Seller onboarding\u003C\u002Fb>\u003Cbr>A hosted flow where sellers enter their details and connect a wallet.\n    \u003C\u002Ftd>\n    \u003Ctd width=\"50%\" valign=\"top\">\n      \u003Ca href=\"docs\u002Fscreenshots\u002Fseller-dashboard.webp\">\u003Cimg src=\"docs\u002Fscreenshots\u002Fseller-dashboard.webp\" alt=\"Seller dashboard: Each seller's own view of their balance, payouts and transfers.\">\u003C\u002Fa>\n      \u003Cbr>\u003Cb>Seller dashboard\u003C\u002Fb>\u003Cbr>Each seller's own view of their balance, payouts and transfers.\n    \u003C\u002Ftd>\n  \u003C\u002Ftr>\n\u003C\u002Ftable>\n\n### Platform\n\n\u003Ctable>\n  \u003Ctr>\n    \u003Ctd width=\"50%\" valign=\"top\">\n      \u003Ca href=\"docs\u002Fscreenshots\u002Fdashboard-home.webp\">\u003Cimg src=\"docs\u002Fscreenshots\u002Fdashboard-home.webp\" alt=\"Home: Today's volume, available balance and trends over time.\">\u003C\u002Fa>\n      \u003Cbr>\u003Cb>Home\u003C\u002Fb>\u003Cbr>Today's volume, available balance and trends over time.\n    \u003C\u002Ftd>\n    \u003Ctd width=\"50%\" valign=\"top\">\n      \u003Ca href=\"docs\u002Fscreenshots\u002Fdashboard-balances.webp\">\u003Cimg src=\"docs\u002Fscreenshots\u002Fdashboard-balances.webp\" alt=\"Balances: Your USDC balance, what can be paid out, and every balance movement.\">\u003C\u002Fa>\n      \u003Cbr>\u003Cb>Balances\u003C\u002Fb>\u003Cbr>Your USDC balance, what can be paid out, and every balance movement.\n    \u003C\u002Ftd>\n  \u003C\u002Ftr>\n  \u003Ctr>\n    \u003Ctd width=\"50%\" valign=\"top\">\n      \u003Ca href=\"docs\u002Fscreenshots\u002Fdashboard-developers.webp\">\u003Cimg src=\"docs\u002Fscreenshots\u002Fdashboard-developers.webp\" alt=\"Developers: API keys and webhook endpoints.\">\u003C\u002Fa>\n      \u003Cbr>\u003Cb>Developers\u003C\u002Fb>\u003Cbr>API keys and webhook endpoints.\n    \u003C\u002Ftd>\n    \u003Ctd width=\"50%\" valign=\"top\">\n      \u003Ca href=\"docs\u002Fscreenshots\u002Fdashboard-settings.webp\">\u003Cimg src=\"docs\u002Fscreenshots\u002Fdashboard-settings.webp\" alt=\"Settings: Business details, identity verification rules and platform wallets.\">\u003C\u002Fa>\n      \u003Cbr>\u003Cb>Settings\u003C\u002Fb>\u003Cbr>Business details, identity verification rules and platform wallets.\n    \u003C\u002Ftd>\n  \u003C\u002Ftr>\n\u003C\u002Ftable>\n\n### Documentation\n\n\u003Ctable>\n  \u003Ctr>\n    \u003Ctd width=\"50%\" valign=\"top\">\n      \u003Ca href=\"docs\u002Fscreenshots\u002Fdocs-quickstart.webp\">\u003Cimg src=\"docs\u002Fscreenshots\u002Fdocs-quickstart.webp\" alt=\"Guides: Quickstarts for payments, marketplaces, self-hosting and webhooks.\">\u003C\u002Fa>\n      \u003Cbr>\u003Cb>Guides\u003C\u002Fb>\u003Cbr>Quickstarts for payments, marketplaces, self-hosting and webhooks.\n    \u003C\u002Ftd>\n    \u003Ctd width=\"50%\" valign=\"top\">\n      \u003Ca href=\"docs\u002Fscreenshots\u002Fdocs-api-reference.webp\">\u003Cimg src=\"docs\u002Fscreenshots\u002Fdocs-api-reference.webp\" alt=\"API reference: Every endpoint, with parameters, cURL and Node.js examples, and sample responses.\">\u003C\u002Fa>\n      \u003Cbr>\u003Cb>API reference\u003C\u002Fb>\u003Cbr>Every endpoint, with parameters, cURL and Node.js examples, and sample responses.\n    \u003C\u002Ftd>\n  \u003C\u002Ftr>\n\u003C\u002Ftable>\n\n## A familiar API\n\nFiatDesk uses familiar resources such as Checkout Sessions, Payment Links, Customers, Products, Subscriptions, Accounts, Transfers, and Payouts. It also follows Stripe's object shapes, webhook patterns, and idempotency model.\n\nIf you have worked with Stripe before, the SDK should feel familiar:\n\n```typescript\nimport { FiatDesk } from '@fiatdesk\u002Fnode';\nconst client = new FiatDesk('sk_live_fd_YOUR_API_KEY', 'https:\u002F\u002Fapi.yourdomain.com');\n\nconst session = await client.checkout.sessions.create({\n  success_url: 'https:\u002F\u002Fyoursite.com\u002Fsuccess',\n  cancel_url: 'https:\u002F\u002Fyoursite.com\u002Fcancel',\n  line_items: [\n    {\n      price_data: {\n        currency: 'usdc',\n        unit_amount: 1000,\n        product_data: { name: 'My first product' },\n      },\n      quantity: 1,\n    },\n  ],\n  mode: 'payment',\n});\n```\n\nThe API covers checkout, subscriptions, and marketplace payouts. See the [API reference](apps\u002Fdocs) for the full list of resources and endpoints.\n\n## Quick start\n\nEverything runs in Docker. Clone the repository with its contract dependencies:\n\n```bash\ngit clone --recursive https:\u002F\u002Fgithub.com\u002Ffiatdesk\u002Fpayment-processor.git\ncd payment-processor\n```\n\nThen pick a mode. Each one is a single command, and the dashboard opens at [localhost](http:\u002F\u002Flocalhost). Go to [localhost\u002Fsetup](http:\u002F\u002Flocalhost\u002Fsetup) to create your platform account and API key.\n\n| Mode                                                  | Command                                                                  | Good for                                                                          |\n| ----------------------------------------------------- | ------------------------------------------------------------------------ | --------------------------------------------------------------------------------- |\n| [Simulated funds](#simulated-funds-default) (default) | `docker compose up -d`                                                   | Trying the dashboard, API and SDK in two minutes                                  |\n| [Local chain](#local-chain)                           | `docker compose -f docker-compose.yml -f docker-compose.anvil.yml up -d` | Real on-chain flows (signing, payout batches, renewals) with no faucet or RPC key |\n| [Sepolia](#sepolia)                                   | `docker compose up -d` with Sepolia settings in `.env`                   | Testing on a public testnet                                                       |\n\nAll modes share one database, so start from a clean one when you switch: `docker compose down -v` deletes all local data.\n\n### Simulated funds (default)\n\n```bash\ndocker compose up -d\n```\n\nNo RPC, keys or ETH needed. Balances are ledger entries with no chain behind them. Credit test USDC from **Balances → Add funds**, or with `POST \u002Fv1\u002Ftest_helpers\u002Ftreasury\u002Ftopups`.\n\n### Local chain\n\n```bash\ndocker compose -f docker-compose.yml -f docker-compose.anvil.yml up -d\ndocker compose -f docker-compose.yml -f docker-compose.anvil.yml logs chain-setup\n```\n\nThis adds a local [Anvil](https:\u002F\u002Fgetfoundry.sh) chain (chain ID `31337`, RPC `http:\u002F\u002Flocalhost:8545`). A one-time container deploys test USDC, `PayoutBatch` and `Subscriptions`, mints 10,000 test USDC to two of Anvil's public test accounts, and the API settles on that chain. The logs print the addresses and keys:\n\n- **Platform wallet** `0x70997970C51812dc3A010C7d01b50e0d17dc79C8`: enter it at `\u002Fsetup`, and import its key into MetaMask to sign payouts from the dashboard.\n- **Buyer wallet** `0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC`: import its key into MetaMask to pay at checkout.\n\nThe first time the dashboard or checkout asks MetaMask to sign, it offers to add the local chain. Top-ups are detected and subscriptions renew automatically. Reset the chain with `docker compose -f docker-compose.yml -f docker-compose.anvil.yml down -v`.\n\n> These are Anvil's public test keys. Anyone can use them, so never send real funds to these addresses.\n\n### Sepolia\n\nPut your Sepolia settings in `.env`, then start as usual:\n\n```bash\nSETTLEMENT_RAIL=onchain\nETH_RPC_URL=https:\u002F\u002Fyour-sepolia-rpc-url\nCHECKOUT_RELAYER_KEY=0x...        # pays checkout gas; holds Sepolia ETH only\nSUBSCRIPTION_OPERATOR_KEY=0x...   # collects renewals; holds Sepolia ETH only\nPAYOUT_BATCH_ADDRESS=0x...        # your PayoutBatch deployment\nSUBSCRIPTIONS_ADDRESS=0x...       # your Subscriptions deployment\n```\n\n```bash\ndocker compose up -d\n```\n\nSepolia USDC is preset. Shared Sepolia deployments of `PayoutBatch` and `Subscriptions` are not published yet, so for now deploy your own (see [Deploy the contracts](#4-deploy-the-contracts)). Get test USDC from the [Circle faucet](https:\u002F\u002Ffaucet.circle.com\u002F) and a little Sepolia ETH for the platform wallet, relayer and operator.\n\n## Setup guide\n\nFollow these steps to settle real transactions, on Sepolia first and then on mainnet.\n\n### 1. Choose a mode\n\n| Mode              | Settings                                    | Money                          |\n| ----------------- | ------------------------------------------- | ------------------------------ |\n| Test, simulated   | defaults                                    | Fake ledger balances, no chain |\n| Test, on Sepolia  | `LIVEMODE=false`, `SETTLEMENT_RAIL=onchain` | Sepolia USDC and Sepolia ETH   |\n| Test, local Anvil | `docker-compose.anvil.yml` sets everything  | Test USDC it deploys for you   |\n| Live, on mainnet  | `LIVEMODE=true`                             | Real USDC and ETH              |\n\nCopy [`.env.production.example`](.env.production.example) to `.env.production` (or [`.env.example`](.env.example) to `.env` for local development). Every variable is described there.\n\n### 2. Get an RPC endpoint\n\nSet `ETH_RPC_URL` to a Sepolia or mainnet JSON-RPC URL from your node provider. Separate several URLs with commas: the first is the primary and the rest are fallbacks. A public RPC is fine for Sepolia but not for production.\n\n### 3. Create the keys\n\nFiatDesk uses four Ethereum accounts. Create each one with `cast wallet new` (Foundry), or in a wallet you control:\n\n| Account               | Where its key lives                                                                                                      | Holds                          |\n| --------------------- | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------ |\n| Platform wallet       | Never on the server: your browser wallet (dashboard), or `WALLET_PRIVATE_KEY` in the Node SDK process that signs payouts | USDC to pay out, ETH for gas   |\n| Checkout relayer      | `CHECKOUT_RELAYER_KEY` on the API host                                                                                   | ETH only: it pays checkout gas |\n| Subscription operator | `SUBSCRIPTION_OPERATOR_KEY` on the API host                                                                              | ETH only: it collects renewals |\n| Deployer              | Your own machine, once (a keystore or hardware wallet)                                                                   | ETH to deploy the contracts    |\n\nThe relayer and operator keys can only relay what buyers sign, or pull at most a plan's amount per period to the plan's destination. Keep only gas money on them. Keep the same `SUBSCRIPTION_OPERATOR_KEY` for good: existing plans are owned by it.\n\n### 4. Deploy the contracts\n\nUSDC is preset for Sepolia and mainnet. `PayoutBatch` and `Subscriptions` are not deployed for you. Deploy them with Foundry (see [`contracts\u002FREADME.md`](contracts\u002FREADME.md)):\n\n```bash\ngit submodule update --init\ncd contracts\nforge script script\u002FDeployPayoutBatch.s.sol --rpc-url \"$ETH_RPC_URL\" --account deployer --broadcast\nforge script script\u002FDeploySubscriptions.s.sol --rpc-url \"$ETH_RPC_URL\" --account deployer --broadcast\n```\n\nSet `PAYOUT_BATCH_ADDRESS` and `SUBSCRIPTIONS_ADDRESS` to the logged addresses. The [local chain](#local-chain) mode deploys everything for you.\n\n### 5. Fund the accounts\n\n- **Sepolia:** get test USDC from the [Circle faucet](https:\u002F\u002Ffaucet.circle.com\u002F) (select USDC and Ethereum Sepolia) for the platform wallet and a buyer wallet. Send a little Sepolia ETH to the platform wallet, the relayer and the operator. Never send real funds to a test wallet.\n- **Mainnet:** send USDC and ETH to the platform wallet, and ETH to the relayer and the operator. Watch their ETH balances: checkout and renewals stop when a key runs out of gas.\n\n### 6. Start FiatDesk and run setup\n\n```bash\nnpm run prod\n```\n\nOpen `\u002Fsetup` on your `DASHBOARD_URL` and enter the platform wallet's address. That wallet becomes the platform's default wallet. You can add more wallets and switch the default later from **Settings → Wallets**.\n\n### 7. Schedule the background work\n\nThese jobs are off by default, because several API instances would each run them:\n\n- **Deposits:** call `POST \u002Fv1\u002Ftopups\u002Fcheck-deposits` when you expect USDC to arrive, or set `TOPUP_MONITOR_ENABLED=true` on a single instance.\n- **Subscription billing:** call `POST \u002Fv1\u002Fbilling\u002Frun_for_platform` with your platform API key from a scheduler, or set `BILLING_MONITOR_ENABLED=true` on a single instance.\n\n### Before you go live\n\nRun the whole flow on Sepolia before deploying `contracts\u002Fsrc\u002FSubscriptions.sol` and `contracts\u002Fsrc\u002FPayoutBatch.sol` to mainnet. As the operator, you carry the money-transmission, AML\u002FKYC and sanctions obligations of your jurisdiction.\n\n## Costs\n\nFiatDesk charges no platform fee and takes no percentage cut. You pay Ethereum network gas for each on-chain transaction, typically a few cents to a few dollars depending on network load. Batching payouts shares part of that cost. See the gas and fees guide in [`apps\u002Fdocs`](apps\u002Fdocs) for estimates.\n\n## Guides and documentation\n\nThe full API reference lives in [`apps\u002Fdocs`](apps\u002Fdocs) and is served at http:\u002F\u002Flocalhost:4205 with `npx nx serve docs`. These guides are good places to start:\n\n- Accept your first stablecoin payment (`apps\u002Fdocs`, payment link quickstart)\n- Create a Checkout Session with the API (`apps\u002Fdocs`, checkout API quickstart)\n- Onboard a seller and send a payout (`apps\u002Fdocs`, quickstart)\n- Move an existing Stripe Connect payout flow (`apps\u002Fdocs`, migrate from Stripe)\n- Understand what Ethereum gas costs and who pays it (`apps\u002Fdocs`, gas and fees)\n\n## Local development\n\n```bash\nnpm install\ndocker compose up -d        # MongoDB\nnpx nx serve api            # API on :3333\nnpx nx serve web            # Dashboard on :4203\nnpx nx serve docs           # Docs on :4205\n```\n\nOr run everything at once:\n\n```bash\nnpm run dev\n```\n\n### Running tests\n\n```bash\nnpx nx test api\nnpx nx test web\nnpx nx test docs\nnpx nx test node-sdk\nnpx nx run contracts:test   # Solidity unit, fuzz and invariant tests (Foundry)\nnpx nx run api:test-anvil   # API integration tests against a local Anvil chain\n```\n\n## Project structure\n\n```\nfiatdesk\u002F\n├── apps\u002F\n│   ├── api\u002F              # Express.js API backend\n│   ├── web\u002F              # Angular dashboard, checkout and onboarding\n│   ├── docs\u002F             # Public product docs and API reference\n│   └── cli\u002F              # Cli for humans and agents\n├── contracts\u002F            # Solidity: PayoutBatch and Subscriptions (Foundry)\n├── libs\u002F\n│   ├── shared-types\u002F     # Shared TypeScript interfaces\n│   └── shared-schemas\u002F   # Shared Zod schemas\n├── sdks\u002F\n│   └── node\u002F             # @fiatdesk\u002Fnode\n├── docker-compose.yml    # Full-stack Docker setup\n└── nx.json\n```\n\n## Fork notice\n\nThis is an independent fork of the Zoneless project (Apache-2.0), forked from commit `5febc1a`. Settlement runs on Ethereum with USDC. See [NOTICE](.\u002FNOTICE) for upstream attribution and [CHANGES.md](.\u002FCHANGES.md) for a list of changes.\n\n## Contributing\n\nSee [CONTRIBUTING.md](.\u002FCONTRIBUTING.md) for development setup, style guidelines, and the pull request process.\n\n## Security\n\nSee [SECURITY.md](.\u002FSECURITY.md) to report vulnerabilities.\n\n## License\n\n[Apache License 2.0](.\u002FLICENSE)\n","FiatDesk 是一个开源的稳定币支付处理平台，专注于在以太坊上使用 USDC 进行链上支付结算。它提供 Stripe 兼容的 REST API，支持托管结账、支付链接、订阅计费、多商户分账、批量付款及 Webhook 通知；采用 EIP-3009 授权实现买家免 Gas 支付，并通过智能合约（如 PayoutBatch）优化链上交易成本。项目采用 Docker 部署，私钥由用户本地保管，适用于需自主掌控资金与合规性的 Web3 应用、SaaS 平台或数字商品市场等场景。",2,"2026-11-24 04:43:52","CREATED_QUERY"]