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

    Interface PaymentMethodSummary

    Summary of a user's enrolled payment method.

    The list returned by DelegationAPI.listPaymentMethods is heterogeneous: it includes enrolled cards (provider in stripe / braintree / visa) AND, when the user has a smart account configured, an entry for the user's ERC-4337 wallet (provider: 'erc4337', type: 'crypto_wallet', brand: 'ethereum'). Filter on provider when callers only want one shape.

    interface PaymentMethodSummary {
        alias?: string | null;
        allowedApiKeyIds?: string[] | null;
        brand: string;
        expMonth: number;
        expYear: number;
        id: string;
        last4: string;
        provider?: DelegationProvider;
        status?: string;
        type: string;
    }
    Index

    Properties

    alias?: string | null

    Human-readable alias, if set

    allowedApiKeyIds?: string[] | null

    NVM API Key IDs allowed to use this payment method, or null if unrestricted

    brand: string

    Card brand (e.g., 'visa', 'mastercard'), 'ethereum' for the erc4337 entry, or payment method type ('paypal', 'venmo')

    expMonth: number

    Expiration month (0 for non-card methods)

    expYear: number

    Expiration year (0 for non-card methods)

    id: string

    Payment method ID (Stripe 'pm_...', Braintree vault token, Visa Agentic token id, or — for the erc4337 entry — the smart-account address)

    last4: string

    Last 4 digits (cards), trailing 4 chars of the wallet address (erc4337), or email/username (PayPal/Venmo)

    provider?: DelegationProvider

    One of 'stripe' | 'braintree' | 'visa' | 'erc4337'

    status?: string

    Current status ('Active' or 'Revoked')

    type: string

    Payment method type ('card' | 'crypto_wallet' | 'paypal' | …)