OMPX JavaScript SDK
    Preparing search index...

    Interface PaymentRequirements

    Unified payment requirements extracted from a 402 response

    interface PaymentRequirements {
        amount: Money;
        description?: string;
        expiresAt?: Date;
        mpp?: MPPChallenge[];
        protocol: Protocol;
        recipient: string;
        resource?: string;
        x402?: X402PaymentRequired;
    }
    Index

    Properties

    amount: Money
    description?: string
    expiresAt?: Date
    mpp?: MPPChallenge[]
    protocol: Protocol
    recipient: string
    resource?: string

    Original protocol-specific data