Ordin

Automated recurring token payments on Whitechain with user automated terms

Ordin

Created At

ETHGlobal Mumbai

Project Description

Ordin brings recurring payments to Whitechain. Customers approve token access and authorize a payment policy specifying the merchant, recipient, amount, billing interval and optional expiry. Merchants can then collect eligible payments without requiring a new customer signature for every renewal. Funds stay in the customer's wallet until a payment succeeds.

The contract enforces the agreed terms, permits only one successful payment per billing window and lets customers cancel future payments. Failed payments do not result in partial charges, and missed billing windows do not accumulate into debt.

To demonstrate the experience, we built Frame, a software subscription app powered by Ordin. Payments unlock premium PNG generation and API access, while customers and merchants can manage billing, view receipts and track renewals. Ordin is deployed on Whitechain Sepolia.

How it's Made

Ordin combines a Solidity smart contract, a TypeScript SDK and a Node.js merchant service. The contract uses OpenZeppelin utilities for token transfers, signature validation and reentrancy protection. EIP-712 signatures bind payment authorizations to specific terms, with nonces and deadlines protecting against replay. It supports both standard wallets and ERC-1271 smart contract wallets.

The SDK uses viem to prepare signatures, build transactions, inspect payment eligibility and decode contract events. Frame connects a browser interface to a merchant backend that relays signed authorizations, submits renewal transactions and tracks payment receipts. The merchant pays renewal gas, while customers currently pay for the initial token approval.

Whitechain Sepolia provides the settlement network, with test USDT used for the subscription demo. For development, we use Hardhat, pinned Solidity compilation and automated tests covering payment rules, authorization, token interactions and subscription behavior.

A useful demo detail is the accelerated billing schedule: Frame charges 1 test USDT per 120-second window for up to three windows, making renewals observable within a short demonstration.

background image mobile

Join the mailing list

Get the latest news and updates

Ordin | ETHGlobal