log processing
This commit is contained in:
parent
c1ff0dc2fe
commit
08457d281d
1 changed files with 2 additions and 0 deletions
|
|
@ -320,7 +320,9 @@ export default class {
|
||||||
}
|
}
|
||||||
|
|
||||||
handleNip68Debit = async (pointerdata: NdebitData, event: NostrEvent) => {
|
handleNip68Debit = async (pointerdata: NdebitData, event: NostrEvent) => {
|
||||||
|
console.log({ pointerdata, event })
|
||||||
const res = await this.debitManager.payNdebitInvoice(event.appId, event.pub, pointerdata)
|
const res = await this.debitManager.payNdebitInvoice(event.appId, event.pub, pointerdata)
|
||||||
|
console.log({ debitRes: res })
|
||||||
if (res.status === 'fail' || res.status === 'authOk') {
|
if (res.status === 'fail' || res.status === 'authOk') {
|
||||||
const e = newNdebitResponse(JSON.stringify(res.debitRes), event)
|
const e = newNdebitResponse(JSON.stringify(res.debitRes), event)
|
||||||
this.nostrSend({ type: 'app', appId: event.appId }, { type: 'event', event: e, encrypt: { toPub: event.pub } })
|
this.nostrSend({ type: 'app', appId: event.appId }, { type: 'event', event: e, encrypt: { toPub: event.pub } })
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue