@nevermined-io/payments
    Preparing search index...

    Interface PlanPriceConfig

    Definition of the price configuration for a Payment Plan

    interface PlanPriceConfig {
        amounts: bigint[];
        contractAddress?: `0x${string}`;
        currency?: string;
        externalPriceAddress?: `0x${string}`;
        feeController?: `0x${string}`;
        isCrypto: boolean;
        receivers: string[];
        templateAddress?: `0x${string}`;
        tokenAddress?: `0x${string}`;
    }
    Index

    Properties

    amounts: bigint[]

    The amounts to be paid for the plan

    contractAddress?: `0x${string}`

    The address of the smart contract that calculates the price

    currency?: string

    Optional currency for the plan (e.g., 'USD', 'EUR', 'USDC', 'EURC'). When omitted, the backend determines the default based on the payment type.

    externalPriceAddress?: `0x${string}`

    The address of the external price contract, if any

    feeController?: `0x${string}`

    The address of the fee controller contract, if any

    if not given, the fee controller is the default one

    isCrypto: boolean

    Whether this is a crypto payment (true) or fiat payment (false)

    receivers: string[]

    The receivers of the payments of the plan

    templateAddress?: `0x${string}`

    The address of the template contract, if any

    tokenAddress?: `0x${string}`

    The address of the token (ERC20 or Native if zero address) for paying the plan