Setup an action once the invoice has been paid.
this method will be fired once we register the invoice was paid, with information of the received payment.
the current instance for method chaining e.g. add optional timeout
Setup an action that happens if the invoice is not paid after a certain amount of time.
the number of seconds to wait for a payment
this method will be called once the timeout is elapsed.
the current instance for method
Manually unsubscribe if you no longer expect the user to pay.
This is only needed if no payment was received and no timeout was configured.
A lightning invoice to be received by your wallet, along with utility functions, such as checking if the invoice was paid and acting upon it.