mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-12-29 10:04:41 +01:00
17 lines
269 B
Python
17 lines
269 B
Python
|
#!/usr/bin/env python3
|
||
|
from pyln.client import Plugin
|
||
|
|
||
|
|
||
|
plugin = Plugin()
|
||
|
|
||
|
|
||
|
@plugin.hook('invoice_payment')
|
||
|
def on_invoice_payment(**kwargs):
|
||
|
"""
|
||
|
"""
|
||
|
plugin.log("invoice_payment kwargs {a}".format(a=kwargs))
|
||
|
return {'result': 'continue'}
|
||
|
|
||
|
|
||
|
plugin.run()
|