1
0

payment_identifier: refactor round_3 to need_merchant_notify/notify_merchant

This commit is contained in:
Sander van Grieken
2023-06-02 13:33:43 +02:00
parent 7601726d29
commit b1925f8747
2 changed files with 43 additions and 19 deletions

View File

@@ -632,10 +632,9 @@ class SendTab(QWidget, MessageBoxMixin, Logger):
return False, repr(e)
# success
txid = tx.txid()
if self.payment_identifier.needs_round_3():
if self.payment_identifier.need_merchant_notify():
refund_address = self.wallet.get_receiving_address()
coro = self.payment_identifier.round_3(tx.serialize(), refund_address)
asyncio.run_coroutine_threadsafe(coro, self.network.asyncio_loop)
self.payment_identifier.notify_merchant(tx=tx, refund_address=refund_address)
return True, txid
# Capture current TL window; override might be removed on return