ERC-8214 On-Chain Buy Now, Pay Later (BNPL) Standard (Buy Now Pay Later (BNPL))

Draft · Vaults & DeFi · created 2026-03-31

Standardizes an on-chain buy-now-pay-later (BNPL) order model in which a customer agrees to an order and makes a down payment with a single signature at checkout, and subsequent installments are automatically collected by the merchant or a delegated operator.

Why it is needed

The global BNPL market has grown to hundreds of billions of dollars annually, but it operates only through centralized providers, making it opaque with rules that vary by jurisdiction, and forcing merchants to integrate with each provider's proprietary API. Attempting to implement installment payments directly on-chain introduces risk if customer consent and down payment are separated at checkout: a merchant could create an order without consent, or a customer could consent without paying. Existing ERC-20 approve or ERC-2612 permit handle payment itself but do not capture consent to order terms. In addition, many tokens such as USDT and WBTC do not support ERC-2612, so signature-based checkout cannot be applied uniformly to all tokens, and automating installment collection after checkout requires the merchant to grant collection authority to operational staff or a keeper, introducing custodial risk over funds. With no standard addressing all of these requirements together, state transitions and authentication methods have varied across BNPL implementations.

What to implement

In depth

IPaymentAuth: Separating payment authorization from token transfer

All token movement must go through an IPaymentAuth implementation, and IBNPL implementations must not call IERC20.transferFrom directly. authData is an opaque value to the caller, and its encoding must be defined and documented per strategy. pullPayment must restrict access so that only approved BNPL contracts can call it, which prevents anyone from draining a permanent allowance in AllowanceAuth, prevents an observed signature from being replayed to a different recipient in PermitAuth and Permit2Auth, and prevents a leaf from being unbound from the payer, recipient, and token in MerkleScheduleAuth. Implementations that call transferFrom directly must use safe transfer handling and must correctly handle tokens like USDT that do not return a bool.

Five payment authorization strategies

AllowanceAuth sets a permanent allowance on the strategy contract using standard ERC-20 approve/transferFrom. PermitAuth requires a new signature for every payment via ERC-2612 permit. Permit2Auth uses Uniswap's standard deployment address (0x000000000022D473030F116dDEE9F6B43aC78BA3) to allow signature-based payments, after a one-time approval, even for tokens that do not support ERC-2612. MerkleScheduleAuth commits an installment schedule with per-installment amounts that differ via a Merkle root. ERC_3009_Auth uses receiveWithAuthorization on ERC-3009 tokens such as USDC to transfer tokens atomically without an allowance and to prevent frontrunning. A deployment must use one or more of these and must clearly document which strategies it supports.

IOperatorManager: Delegated collection without custody of funds

A merchant grants a specific address permission to trigger installment collection via authorizeOperator, revokes it with revokeOperator, and checks it with isOperator. An operator only triggers collection and never receives funds; tokens always flow directly from the customer to the merchant. Permissions are scoped per merchant, so an operator approved by merchant A has no authority over merchant B's orders. A contract implementing IBNPL must also implement IOperatorManager in the same contract, and supportsInterface must return true for both interface identifiers.

OrderAuthorization and EIP-712 checkout consent

This is an EIP-712 struct that the customer signs at checkout, containing merchant, token, totalAmount, installments (2 to 12), downPaymentBps (1000 to 5000), installmentPeriod, gracePeriod, lateFeeBps (0 to 1500), downPaymentAuthStrategy, installmentAuthStrategy, nonce, and deadline. The domain separator must be recomputed each time to reflect any change in block.chainid during a chain fork, and must not be cached. createOrder moves tokens only after verifying this signature, using ECDSA for EOAs and ERC-1271 (isValidSignature returning 0x1626ba7e) for smart contract wallets. The per-customer nonce increments by exactly 1 on each successful createOrder and does not increment if a later step fails.

MerkleScheduleAuth's variable installment schedule

This is used when the installment amount differs by round. The merchant must atomically register a Merkle root composed of (installmentIndex, amount, dueDate) leaves via registerSchedule inside createOrder, and this function can only be called by the BNPL contract to prevent frontrunning. Each leaf is consumed exactly once, keyed by (orderId, leafHash). The caller's amount must be either 0 (a sentinel) or match the leaf amount, and the leaf amount takes priority for the actual transfer amount. Orders using this strategy do not have late fees applied and do not support payOffEarly, so paying off early requires submitting the remaining leaves in order, or all at once via a multicall. Leaves are generated with abi.encode, and the tree hashes child nodes after sorting them.

The frontrunning-prevention structure of the ERC-3009 strategy

Because receiveWithAuthorization requires msg.sender to equal to, the ERC_3009_Auth contract first receives the token into itself (to = this contract) and then forwards it to the actual merchant via transfer, in a two-step flow. No allowance is ever created in this process, and the token moves at the same time the signature is submitted. Because it uses a random 32-byte nonce, unlike ERC-2612's sequential nonce, multiple authorizations can be submitted in any order. This strategy only works on tokens that implement ERC-3009, such as USDC (v2 and above) and EURC, and is not supported by most tokens such as USDT and WETH.

Order state machine and default handling

There are five order states: Active, Completed, Defaulted, Cancelled, and Refunded. collectInstallment can be called by the merchant, the customer, or an operator approved by the merchant, and funds always flow from the customer to the merchant. The customer can pay off early at any time via payOffEarly, except for orders using MerkleScheduleAuth. If no payment is made after the grace period has passed from nextPaymentDue, markDefaulted can be called, and the resulting OrderDefaulted event carries the outstanding balance. Recovery of the delinquent amount itself is outside the scope of this standard, deliberately left to be handled by off-chain procedures, legal means, or platform-specific systems.

Proposal status

This ERC is currently in Draft status, a stage prior to official adoption. Detailed fields or function signatures in the specification may change going forward, or discussion may stall, so the latest status should be checked before implementation.

Original ERC · ← ERCs