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.
If an order reaches the
settled-hold-invoicestatus but the Lightning payment to the buyer invoice fails, Mostro sends anadd-invoiceaction request so the user can provide a new invoice.However, if the user performs a
restore-sessionat this point, Mostro only returns the order with statussettled-hold-invoice, does not resend theadd-invoiceaction or any signal indicating that the previous payment attempt failed.Because of this, the app has no way to know that:
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.