Nothing shows up under “Sales” though. Is it just not implemented yet or am I missing something #[2] ?
Discussion
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.
