Can you give me an example of this? I could possibly try it out.

The app is nostr:npub1nkmta4dmsa7pj25762qxa6yqxvrhzn7ug0gz5frp9g7p3jdscnhsu049fn but I don’t think any check is being done.

Here are the links to the original files:

https://github.com/sovbiz/Cypher-Nostr-Edition/blob/main/components/Bcbutton.vue

https://github.com/sovbiz/Cypher-Nostr-Edition/blob/main/components/Cart/Bitcoinconnect.vue (line 849 is where the Bcbutton component is used)

The screenshots show my modifications to those two files where I tried setting a handler for the bc:onpaid event, but it doesn’t fire. Maybe I did it wrong. 😄

Reply to this note

Please Login to reply.

Discussion

You probably have to use the bc-pay-button instead and add the preimage attribute once you receive a payment. https://github.com/getAlby/bitcoin-connect?tab=readme-ov-file#components

The bitcoin connect dev tools have an example of this (polling for an external payment and then setting the preimage to update the button)

I’ll check it out. Thanks Roland. 🙏