add splitpayments tag to extra if no tag
This commit is contained in:
@@ -52,6 +52,11 @@ async def on_invoice_paid(payment: Payment) -> None:
|
|||||||
)
|
)
|
||||||
|
|
||||||
logger.debug(f"created split invoice: {payment_hash}")
|
logger.debug(f"created split invoice: {payment_hash}")
|
||||||
|
|
||||||
|
extra = {**payment.extra, "splitted": True}
|
||||||
|
if not extra.get("tag"):
|
||||||
|
extra["tag"] = "splitpayments"
|
||||||
|
|
||||||
checking_id = await pay_invoice(
|
checking_id = await pay_invoice(
|
||||||
payment_request=payment_request,
|
payment_request=payment_request,
|
||||||
wallet_id=payment.wallet_id,
|
wallet_id=payment.wallet_id,
|
||||||
|
|||||||
Reference in New Issue
Block a user