I'm creating a WordPress plugin for bitcoin donations. I want it to behave similar to the checkout process for many bitcoin shopping carts, where the QR code is displayed then once the user scans and sends bitcoin to the address, it swaps out with a "thank you" message.
I was thinking of using messages attached to the donation, or a specific amount for each donation, but it's getting complicated. How can I have a single receiving address for each donation, yet have the system know when the user Joe has donated vs when Bob donated, so they both get thank you message at the appropriate time.
Is this possible, or do I need to generate a middleman address for every transaction, and just check the balance on that one?
I only want to go this route so I'm not responsible for a screw up if someone donates, the site glitches, and the private key to the middleman address is lost before the funds can be forwarded on to the final receiving address.