MCPcopy Create free account
hub / github.com/ElementsProject/lightning / on_payment

Function on_payment

contrib/plugins/helloworld.py:44–46  ·  view source on GitHub ↗
(plugin, invoice_payment, **kwargs)

Source from the content-addressed store, hash-verified

42
43@plugin.subscribe("invoice_payment")
44def 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")

Callers

nothing calls this directly

Calls 1

logMethod · 0.80

Tested by

no test coverage detected