Should be a wallet level fix, when the user attempts to pay the same invoice again it fails. You might have a check to prevent paying the same invoice multiple time. In case of AMP invoices, the invoice will remain the same, but the node will be able to pay it
