92
Apollo Q&A
9242c6d01a23c51c0fa00828cd586c8c7f8e90b37654813c132b7e3c3468440f

I invited you to answer my question on Apollo:

https://www.apolloqa.org/questions/399613fa-f4d2-4cdd-957d-20a67e7da1a4

nostr:naddr1qvzqqqrulypzpyjzcmgp5g79rs86qzpge4vxerrl36gtxaj5sy7px2m78s6xs3q0qqjrxwfexccnxenp94nrgepj956xxery95un2dmy95erqcfkxajnwerpx9sng29amek

I invited you to answer my question on Apollo:

nostr:naddr1qvzqqqrulypzpyjzcmgp5g79rs86qzpge4vxerrl36gtxaj5sy7px2m78s6xs3q0qqjrwep3xsurwvps94nrvetp956rvvmp95urgdfk943rjdrxxqcnzwphx9nxxpwgmzs

I invited you to answer my question on Apollo:

nostr:naddr1qvzqqqrulypzpyjzcmgp5g79rs86qzpge4vxerrl36gtxaj5sy7px2m78s6xs3q0qqjrwep3xsurwvps94nrvetp956rvvmp95urgdfk943rjdrxxqcnzwphx9nxxpwgmzs

I invited you to answer my question on Apollo:

nostr:naddr1qvzqqqrulypzpyjzcmgp5g79rs86qzpge4vxerrl36gtxaj5sy7px2m78s6xs3q0qqjrwep3xsurwvps94nrvetp956rvvmp95urgdfk943rjdrxxqcnzwphx9nxxpwgmzs

Replying to Avatar Samuel Ralak

I am working on implementing zaps on my NOSTR client using the [Nost Dev Kit](https://github.com/nostr-dev-kit/ndk), so far I have been able to successfully generate lightning invoices with the NDKEvent.zap method. The next step would be to generate a receipt `kind 9735 `; however, according to the [NIP-57](https://github.com/nostr-protocol/nips/blob/master/57.md), the receipt isn't definitive proof that the invoice was paid. Now, I need client to perform the following steps:

- Check if the user has a connected wallet. If not, prompt the user to connect their wallet.

- Pay the invoice when the wallet is successfully connected.

- Publish kind 9735 upon successful payment.

Similar flows can be seen on clients like habla.news, coracle.social and flockstr

I've been going through [NIP-47](https://github.com/nostr-protocol/nips/blob/master/47.md) and checking the code/documentation on `alby-js-sdk`, but I'm still a bit confused on how to put all these pieces together. Any guidance or code examples would be greatly appreciated!

Commenting on this post to check if comment notifications work

Replying to Avatar Samuel Ralak

I am working on implementing zaps on my NOSTR client using the [Nost Dev Kit](https://github.com/nostr-dev-kit/ndk), so far I have been able to successfully generate lightning invoices with the NDKEvent.zap method. The next step would be to generate a receipt `kind 9735 `; however, according to the [NIP-57](https://github.com/nostr-protocol/nips/blob/master/57.md), the receipt isn't definitive proof that the invoice was paid. Now, I need client to perform the following steps:

- Check if the user has a connected wallet. If not, prompt the user to connect their wallet.

- Pay the invoice when the wallet is successfully connected.

- Publish kind 9735 upon successful payment.

Similar flows can be seen on clients like habla.news, coracle.social and flockstr

I've been going through [NIP-47](https://github.com/nostr-protocol/nips/blob/master/47.md) and checking the code/documentation on `alby-js-sdk`, but I'm still a bit confused on how to put all these pieces together. Any guidance or code examples would be greatly appreciated!

Testing a different comment here

Replying to Avatar Samuel Ralak

I am working on implementing zaps on my NOSTR client using the [Nost Dev Kit](https://github.com/nostr-dev-kit/ndk), so far I have been able to successfully generate lightning invoices with the NDKEvent.zap method. The next step would be to generate a receipt `kind 9735 `; however, according to the [NIP-57](https://github.com/nostr-protocol/nips/blob/master/57.md), the receipt isn't definitive proof that the invoice was paid. Now, I need client to perform the following steps:

- Check if the user has a connected wallet. If not, prompt the user to connect their wallet.

- Pay the invoice when the wallet is successfully connected.

- Publish kind 9735 upon successful payment.

Similar flows can be seen on clients like habla.news, coracle.social and flockstr

I've been going through [NIP-47](https://github.com/nostr-protocol/nips/blob/master/47.md) and checking the code/documentation on `alby-js-sdk`, but I'm still a bit confused on how to put all these pieces together. Any guidance or code examples would be greatly appreciated!

Adding comme to this