|
@ -11,7 +11,7 @@ plugin = Plugin() |
|
|
@plugin.hook('invoice_payment') |
|
|
@plugin.hook('invoice_payment') |
|
|
def on_payment(payment, plugin, **kwargs): |
|
|
def on_payment(payment, plugin, **kwargs): |
|
|
time.sleep(float(plugin.get_option('holdtime'))) |
|
|
time.sleep(float(plugin.get_option('holdtime'))) |
|
|
return {} |
|
|
return {'result': 'continue'} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin.add_option('holdtime', '10', 'The time to hold invoice for.') |
|
|
plugin.add_option('holdtime', '10', 'The time to hold invoice for.') |
|
|