PayFanout API reference
    Preparing search index...

    Interface UseSavedPaymentMethodsResult

    interface UseSavedPaymentMethodsResult {
        error: UnifiedError | undefined;
        methods: SavedPaymentMethod[];
        refresh: () => Promise<void>;
        remove: (token: string) => Promise<void>;
        status: SavedPaymentMethodsStatus;
    }
    Index
    error: UnifiedError | undefined

    Set while status === "error"; cleared when the next call starts.

    Last successfully fetched list — kept on screen through reloads, empty until the first "ready".

    refresh: () => Promise<void>

    Re-fetches the list. Never throws — failures land in error/status.

    remove: (token: string) => Promise<void>

    Awaits the injected remove, then re-fetches: the host's list is the truth, never spliced locally. Never throws — failures land in error/status.