quotingI 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:
naddr1qv…5x2u
- 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!
samuelralak on Nostr: Check out my question on Apollo ...
Check out my question on Apollo https://www.apolloqa.org/questions/6e3dc618-f3a8-4d88-9056-a9f43e6d8c25