(plugin, invoice_payment, **kwargs)
| 42 | |
| 43 | @plugin.subscribe("invoice_payment") |
| 44 | def on_payment(plugin, invoice_payment, **kwargs): |
| 45 | plugin.log("Received invoice_payment event for label {label}, preimage {preimage}," |
| 46 | " and amount of {msat}".format(**invoice_payment)) |
| 47 | |
| 48 | |
| 49 | @plugin.subscribe("invoice_creation") |