Stablecoin checkout with gasless payments, signed webhooks, receipts and refunds for your app.
Checkout helps businesses accept stablecoin payments without building their own payment infrastructure. A wallet transfer alone does not tell a business which order was paid, whether the purchase was delivered, or how to handle a refund. Checkout connects those steps in one flow.
Integration starts with a merchant account, an API key and a webhook endpoint. The merchant's server creates an order through our API or server SDK and receives a hosted checkout URL. The customer connects a wallet and signs a payment authorization. Our relayer submits the transaction and pays the network fee, so the customer does not need a separate gas-token balance. The current implementation uses USDT on Whitechain Sepolia. Funds settle directly to the merchant's payout wallet.
After settlement is confirmed, Checkout sends a signed webhook to the merchant app. Notifications are stored durably and retried if that app is unavailable. Payment and fulfillment have separate statuses, so a confirmed payment is not mistaken for a delivered purchase. The merchant workspace brings orders, receipts, delivery status and full or partial refunds together. Refunds require the merchant's authorization.
The project includes a live hosted checkout, an independent example merchant app, integration documentation, a server SDK and an integration skill for coding agents. Multiple customers can submit orders concurrently; idempotent requests and durable jobs prevent duplicate payment submissions. The goal is a small integration surface for developers and a clear payment experience for customers.
The frontend uses Next.js App Router, React and TypeScript on Vercel. A Fastify API and worker run on Railway with a persistent SQLite database. The separate example merchant service creates its own orders, receives signed webhooks and acknowledges fulfillment, demonstrating the integration a real business would implement.
On Whitechain Sepolia, our Solidity RelayCheckout contract works with the required USDT token at 0xcedfB56113143d55b2358b8CFbB0dEB5Ad2f55a7. Buyers sign EIP-712 token authorizations; the relayer pays WBT gas and submits payment calls. Authorizations bind the payment to its order, payer, merchant, amount and expiry. The contract forwards payment to the merchant and records payment/refund events. The deployed contract at 0x43fbe3884038e34e811cf251ae00dfd5df826034 has verified source on the Whitechain explorer.
The reliability work is in the boundaries between signatures, transactions and business actions. Signed transaction bytes are persisted before broadcast, so uncertain RPC responses reuse the same transaction instead of charging twice. A leased worker serializes the relay wallet's transaction writes to avoid nonce races. A chain indexer confirms settlement and writes events to a durable webhook outbox. Webhook signatures, retries and idempotent merchant handling connect payment confirmation to fulfillment. Up to ten due webhook deliveries run concurrently, so a slow endpoint does not hold up the entire batch.
The API accepts concurrent merchant/customer requests while settlement is queued. Tests cover concurrent submissions, duplicate requests, merchant isolation, worker leases, process restarts, webhook recovery, payments and refunds. The full 33-test suite passed, including isolated Anvil-fork integration tests. The current deployment is single-host SQLite, not horizontally scaled; automatic transaction fee replacement and mainnet security review remain future work.
AI disclosure: Codex and coding agents assisted with implementation, tests, debugging, documentation and UI copy across the frontend, backend, SDK and contracts. Image generation assisted with presentation graphics and the architecture illustration. Product direction, design choices, integration decisions and the recorded demo narration were directed or provided by me.

