Gasless USDT payments for shoppers and AI agents, with refunds and verifiable merchant records.
QuietPay: Gasless USDT payment toolkit on Whitechain Sepolia. It enables merchants to receive stablecoin payments without the need for customers to hold the network’s gas token or submit transactions themselves. the customer signs a payment authorization A relayer sends it to a smart contract, which atomically transfers the merchant payout and the relay fee. The authorization locks the order, amount, payout address and fee so that the relayer cannot change those payment terms. The project includes an embeddable checkout widget, a TypeScript merchant SDK, a demo storefront, and a merchant dashboard with wallet sign-in. Merchants can track payments and issue partial or full refunds to the original payer. Signed webhooks and persistent receipt storage connect onchain settlement to the merchant’s application. QuietPay also supports machine-to-machine payments through an x402 facilitator and a paid API demo. A budget-controlled agent client can authorize payments for API access while enforcing spending limits. For reconciliation, an indexer turns blockchain events into merchant ledger records and CSV exports. A separate verifier independently reconstructs those records from chain data to detect missing, duplicated, or altered entries. QuietPay is a testnet prototype using official Whitechain test USDT. It demonstrates customer checkout, merchant operations, and agent payments through one payment toolkit.
QuietPay is built using TypeScript in a pnpm monorepo, with Solidity smart contracts developed and tested using Foundry. We use React, Vite, and Tailwind CSS for the storefront and merchant dashboard, while Lit helps us create a checkout component that merchants can easily add to their websites. Fastify powers our backend APIs, viem handles blockchain interactions and signatures, and Zod validates incoming data.
For payments, we use the official test USDT on Whitechain Sepolia. Normally, customers would need gas tokens to approve and send a payment themselves. QuietPay simplifies this using EIP-3009 ReceiveWithAuthorization. Customers just sign an EIP-712 payment authorization, and our relayer pays the WBT gas fee to submit the transaction. The PaymentRouter smart contract then sends the merchant's payment and relay fee together, ensuring both happen in a single transaction.
To keep payments secure, we include the merchant, order, payout address, amount, and relay fee in the authorization nonce. This means nobody can change the payment details without invalidating the signature. We also support full and partial refunds, where the merchant authorizes funds to be returned directly to the original customer using separate refund nonces.
On the backend, SQLite stores orders, payment attempts, webhook deliveries, and refund requests. We also save signed transactions before broadcasting them, so if the blockchain RPC gives an unclear response, we don't accidentally submit the same payment twice. Signed webhooks help merchants automatically update their applications when payments are completed.
We also built an x402 facilitator that allows AI agents to pay for API services automatically. Our agent client follows a spending budget, making sure automated payments stay within defined limits.
For merchant accounting, an indexer reads blockchain events and converts them into transaction records and CSV reports. A separate verifier checks those records directly against blockchain data, helping identify missing, duplicate, or modified entries without relying only on our database.
To test everything, we use Foundry for smart contract tests, Vitest for backend and security-related tests, fast-check for property-based testing, and Playwright for browser testing. GitHub Actions runs our automated checks to help catch issues whenever we push code..

