update with payer too
This commit is contained in:
parent
7b2bd7c26f
commit
7fc89a63f2
2 changed files with 10 additions and 1 deletions
|
|
@ -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()')
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue