mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-12-28 01:24:42 +01:00
17 lines
269 B
Python
Executable File
17 lines
269 B
Python
Executable File
#!/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()
|