Private USDC checkout links on Polygon with Railgun-based shielding.
Every crypto payment today broadcasts who paid whom and how much to the entire blockchain - killing business confidentiality and financial privacy. PrivPay solves this with private checkout links powered by Railgun's zero-knowledge protocol on Polygon.
How to use it:
Each checkout exposes an x402-compatible endpoint returning machine-readable payment instructions (amount, token, merchant's 0zk address). Payers shield USDC directly to merchants using client-side Railgun proof generation - no specialized wallets required.
Technology Integration:
The prototype demonstrates real end-to-end private payments working on Polygon mainnet - proving privacy can be simple for subscriptions, ecommerce, and B2B invoicing.
Core Innovation: First browser-native Railgun integration for payment checkouts. We run the entire ZK proof engine client-side, eliminating centralized wallet servers - truly decentralized private payments.
Architecture: pnpm monorepo with Vite + React + TypeScript frontend and Express + TypeScript backend connected to MongoDB.
Railgun Integration: When merchants log in via Privy, backend generates Railgun wallets using the official SDK and stores encrypted mnemonics plus 0zk addresses. Frontend uses Railgun's populateShield() to generate zero-knowledge proofs entirely in-browser - proof generation runs client-side using BrowserLevel for IndexedDB and LocalForage for cryptographic artifacts.
Payment Flow: Checkout endpoints return x402-structured JSON (token address, amount, network, merchant 0zk address). Payers connect wallets, app checks USDC balances and ERC-20 allowances, creates shield transactions. Each checkout uses deterministic 0zk addresses via keccak256(checkoutId + merchantId) - unique privacy pools without storing keys.
Partner Technology Synergy:
What Works: Railgun wallet generation, x402 endpoints, USDC balance detection, EIP-2612 permit signatures (gasless approvals), full shield transaction creation and execution tested on Polygon mainnet with real USDC. This forms the foundation for automated private merchant distribution and recurring payment flows.

