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

Function on_pay_success

tests/plugins/custom_notifications.py:28–34  ·  view source on GitHub ↗
(origin, pay_success, **kwargs)

Source from the content-addressed store, hash-verified

26
27@plugin.subscribe("pay_success")
28def on_pay_success(origin, pay_success, **kwargs):
29 plugin.log(
30 "Got a pay_success notification from plugin {} for payment_hash {}".format(
31 origin,
32 pay_success['payment_hash']
33 )
34 )
35
36
37@plugin.subscribe("pay_part_start")

Callers

nothing calls this directly

Calls 1

logMethod · 0.80

Tested by

no test coverage detected