I’m building an single page web app, where I need to send the users inputted string (email address) along with their bitcoin payment. Say for example I have a single page web app that issues gift certificate barcodes and accept Bitcoin or altcoins. The problem I’m having is that if the user pays to my static bitcoin address, how do I know where to send the barcode information to? I need some form of contact, in my case it’s an email address that the user inputs on to the page. What ways can the user send me their email address?
Some problems I ran into was the static bitcoin address. If multiple people paid to the same bitcoin address, I won’t know who to send the barcode to. But if I have 100 pre-generated addresses. And one of them was chosen at random then combined with the email address. It would less likely have a collision of someone paying at the same time to the same btc address.
Now the issues is getting that email+btc address to me to verify the transaction has been completed.
One of the other solutions I came up with was requiring another altcoin that had messaging ability built in. The only 2 I know of is Florincoin and NXT where you can include a message with each transaction. The only issue with this is that it requires the app owner to hold florincoin or nxt (i don’t believe you can attach a message in ethereum?). Using shapeshift to convert BTC to one of these coins works, but you cannot attach a message during this shapeshift swap. If shapeshift enabled the ability to also attach a message during their conversion this would technically solve the issue by getting the email address to the app owner.
What are some other solutions that might not require a centralized server to collect this data? Centralized server solutions are okay too if you have a solution.