Skip to content

Add payment method preference memory per recipient #253

Description

@Kingsman-99

Description

PaymentMethodSelector.tsx presumably asks for payment method/token choice every time with no memory of a payer's prior preference for a given recipient. This issue adds per-recipient preference memory.

Technical Context

Involves src/components/PaymentMethodSelector.tsx. Store the last-used token/method per (payer, recipient) pair in localStorage; pre-select it as the default on subsequent payments to the same recipient, while still allowing override.

Acceptance Criteria

  • First payment to a new recipient has no pre-selected preference (current default behavior unchanged)
  • Subsequent payments to the same recipient pre-select the previously used method/token
  • Explicitly choosing a different method on a later payment updates the stored preference
  • Preference storage is scoped per connected address (switching wallets doesn't leak another wallet's preferences)
  • Unit tests: first-time no-preference behavior, preference update on override, per-address scoping

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions