Skip to main content

Overview

PayerCondition is a singleton condition that restricts an action to the payment’s payer address. Type: Singleton, CREATE2 (deployed once, reused by all operators) Address (all supported chains): 0x586486394C38A2a7d36B16a3FDaF366cd202d823

Logic

function check(PaymentInfo calldata payment, uint256, address caller, bytes calldata)
    external pure returns (bool)
{
    return caller == payment.payer;
}
The condition compares caller against payment.payer, pure computation with no storage reads.

When to Use

SlotUse Case
AUTHORIZE_PRE_ACTION_CONDITIONLet payer create payments (subscriptions, invoices)
VOID_PRE_ACTION_CONDITIONLet payer request refunds during escrow
REFUND_PRE_ACTION_CONDITIONLet payer cancel streams
Typically paired with ReceiverCondition for capture, since payers shouldn’t capture their own funds in most configurations.

Gas

Cost: Minimal, pure function with no storage reads.

Next Steps

ReceiverCondition

Restrict actions to the payment receiver.

Combinators

Combine PayerCondition with other conditions.