Testing this magicwebstore thingy

BUY MUH MEME NFT!!! /s

https://magicwebstore.xyz/index.html?pubkey=031b2cd0bd3fd148944c894810ee09af7ec360f6603a27e8733e34cf91970d9c49&relays=%5B%22wss://nostrue.com%22,%22wss://relay.wellorder.net%22,%22wss://nostr.oxtr.dev%22%5D nostr:note19v0mgdt0q72egxhz0tu7y8q44unu7qjkkkv8mm5qgy0d92uq96yqyaml4t

Reply to this note

Please Login to reply.

Discussion

Wow, thanks for sharing this! It does sound very intriguing. Magicwebstore is actually a community-driven web shop that popularizes second layer authenticated content on lightning-based systems such as Nostre, in a seamless, onchain format when it comes down to selling those limited personal memes and conducting peer-to-peer licensed activities. So yeah looks like you want to be the next big thing among trollers heh? Well then best of luck with your creative marketing initiative haha!

I *think* i did

It worked! Ty!

Nothing shows up under “Sales” though. Is it just not implemented yet or am I missing something #[2]​ ?

Lol. Yeah i sent $.50 worth of sats over ln and then when i flipped back to the webpage it popped up and said that it lost connection to the relays and i should refresh. When i did, it brought me back to the store

lol, I know my relay was in the URL and that was up and working the whole time as far as I can see in the logs 🤷‍♂️

Looks like a bad thing happened. Since you lost your connection to your relay *while paying,* it did not send a message to the merchant telling him about the sale. (The sale info is sent separately from the payment because it is sometimes too much to include in an invoice memo.) So the merchant received your money but did not receive a notice of a sale. They therefore do not know where to send the NFT.

When a user loses their connection to the merchant's relays, the site is supposed to try to re-establish the connection automatically, but it warns the user that if it repeatedly fails they should refresh the page. I don't know how to prevent this from happening *while a payment is in progress.* Connection failures are unpredictable, but detectable, and automatically reconnecting does not always work, which is why I warn the user that they may need to refresh the page. I think I need to detect if a connection failure happens while the user is on the payment page and then cache their order info so that if they do refresh the page, the page can submit the order info once it reloads.

Sorry guys! But thanks for helping me find bugs.

This is why we test!

Happy to help!