Skip to content

Lost recovery after restore-session when invoice payment failed in settled-hold-invoice state #601

Description

@Catrya

If an order reaches the settled-hold-invoice status but the Lightning payment to the buyer invoice fails, Mostro sends an add-invoice action request so the user can provide a new invoice.

However, if the user performs a restore-session at this point, Mostro only returns the order with status settled-hold-invoice, does not resend the add-invoice action or any signal indicating that the previous payment attempt failed.

Because of this, the app has no way to know that:

  • the invoice payment failed, and
  • the buyer must provide a new invoice.

As a result, the order appears as successfully settled, while in reality the buyer has not been paid and has no way to receive their sats anymore.

Metadata

Metadata

Assignees

Type

No type

Fields

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