update with payer too

This commit is contained in:
hatim boufnichel 2020-12-30 19:30:44 +01:00
parent 7b2bd7c26f
commit 7fc89a63f2
2 changed files with 10 additions and 1 deletions

View file

@ -1074,6 +1074,15 @@ const sendSpontaneousPayment = async (
payment_request: orderResponse.response payment_request: orderResponse.response
}) })
const coordinate = 'lnPub + invoiceIndex + payment hash(?)' //....
const orderData = {
someInfo: 'info '
}
getUser()
.get('orders')
.get(coordinate)
.set(orderData)
return payment return payment
} catch (e) { } catch (e) {
logger.error('Error inside sendPayment()') logger.error('Error inside sendPayment()')

View file

@ -267,7 +267,7 @@ const listenerForAddr = (addr, SEA) => async (order, orderID) => {
getUser() getUser()
.get('orders') .get('orders')
.get(coordinate) .get(coordinate)
.set(orderData) // each item in the set is a tip .set(orderData)
} }
stream.on('data', invoiceSubCb) stream.on('data', invoiceSubCb)