Skip to content

bug: pending screen shows a repeat's amount for an amountless invoice #2072

Description

@ovitrif

Paying an amountless invoice again at another amount, while Spark still lists its first payment as pending, opens Payment Pending at the new amount. When the first payment completes, the success screen shows the new amount too, though Spark sent the first one.

SparkRepo.payInvoice answers a repeat of an invoice Spark lists pending with PaymentPendingException, before any key is chosen. AppViewModel then navigates with SendEffect.NavigateToPending(pendingHash, displayAmountSats), the draft amount, and the success receipt falls back to it.

A retry under the same Spark key at another amount is refused before anything goes out (#2071); this is the older path for a send Spark already lists pending. Expected: Pending and Success show the amount the earlier payment sent, or the repeat is refused on Confirm, as iOS does with its duplicate-payment error.

Activity

  1. added theissue type on Nov 26, 2026
  2. added this to the 3.2.0 milestone on Nov 26, 2026
  3. ovitrif commented on Nov 26, 2026

    @ovitrif
    CollaboratorAuthor

    Placed in 3.2.0: Pending and Success show an amount Spark never sent, and the app can fix it alone, as iOS already refuses the repeat on Confirm.

  4. self-assigned this
    on Nov 26, 2026
  5. added a commit that references this issue on Nov 26, 2026
    ce62365
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions