WhitePe

Pay any merchant QR with crypto. Merchants receive USDT on Whitechain. Convert to PDF

WhitePe

Created At

ETHGlobal Mumbai

Project Description

WhitePe enables customers to pay any registered merchant by scanning their existing payment QR code and using crypto from supported blockchain networks. WhitePe handles the conversion and routing, while merchants receive USDT directly on Whitechain.

The problem Merchants already use QR-based payment systems to collect payments, but these systems don't let customers spend crypto directly. Meanwhile, crypto holders face friction when trying to use their digital assets for everyday purchases.

The solution WhitePe bridges traditional QR-based merchant payments and multi-chain crypto. Merchants register their QR identity and connect a receiving wallet. Customers simply scan the QR, enter the amount, choose their preferred crypto asset, and pay.

How it works

  1. Merchant onboarding: Register a business, upload or register an existing UPI or merchant QR code, and connect a Whitechain receiving wallet.
  2. Scan any merchant QR: Customers scan the merchant's existing payment QR through WhitePe.
  3. Choose how to pay: Enter the payment amount and select a supported crypto asset from available blockchain networks.
  4. Automatic conversion and routing: WhitePe handles the swap and cross-chain routing required to deliver the payment.
  5. Merchant receives USDT: The payment settles in USDT on Whitechain, with an on-chain transaction receipt.

How it's Made

WhitePe is implemented using Next.js, TypeScript, Solidity, and viem, with Whitechain Sepolia as the settlement network.

The frontend handles merchant onboarding, QR scanning, payment creation, wallet connections, and transaction tracking. Privy is used for embedded wallet authentication, while MetaMask and other external wallets are supported through wallet connectors.

QR scanning is implemented using a browser-based QR scanner. The application parses the QR payload to extract merchant payment details, including the UPI ID or other supported merchant identifier. A merchant registry maps the extracted identifier to the merchant's registered Whitechain wallet.

Smart contracts are written in Solidity and deployed on Whitechain Sepolia. The merchant registry stores merchant identifiers, wallet addresses, and registration status. The payment contract resolves the merchant's registered wallet, processes USDT settlement, prevents duplicate payments, and emits events for transaction tracking.

Viem handles contract reads, transaction preparation, wallet interactions, and on-chain event monitoring. Cross-chain routing infrastructure is integrated to obtain swap quotes and route supported assets from source networks into USDT on Whitechain.

The customer checkout flow calculates the required crypto amount, displays the routing quote, requests wallet authorization, and tracks the transaction until settlement is confirmed. The merchant dashboard listens for payment events and updates transaction history and receipts.

The application is structured around reusable frontend components, dedicated contract interaction utilities, and a minimal backend for merchant data and transaction indexing.

background image mobile

Join the mailing list

Get the latest news and updates

WhitePe | ETHGlobal