Just wondering, wouldn't be the cheaper to code a rather simple solution like this:
- generate a new receiving address for the customer, which he can use to pay (the private key can be hashed and stored)
- have a background process in the server which checks the amount paid received enough confirmations
- send payment confirmation to the customer
Or there is some problem with it / not so easy as it seems?
well, this seems to be something quite a neat solution
It works quite well. I have used it myself on my site:
, if you click on one of the "buy spins" buttons you can see how it looks like.
I have only set up bitcoin lightning payments, but you can also accept on-chain payments of course.