I'm trying to get a high level overview of what I need to do in order to integrate bitcoin payment in my web app.
I do not want to use a third party payment process like coinbase or bitpay, as that goes against the spirit of p2p currency.
Here is the basic idea:
* user clicks "pay now" button
* backend generates a new address in a wallet I control for user to send payment to
* user then sends payment to that address
* client pings backend waiting for confirmation payment was received at that unique address and in correct amount
* invoice is then marked as "paid" and tagged with transaction id.
So I know I have to have bitcoind running, I already have a full node running, and I'm aware that I can make json-rpc calls to bitcoind.
But how do I generate a new address for each invoice? Its my understanding bitcoind does not have a wallet.
I'm developing this app in node.js, so if I can leverage some npm modules to make things easier, even better.
I dont' need anything fancy, just a random payment address in a wallet I control and confirmation that payment was received.
I can do the long polling and client side stuff no problem.
I like to learn from examples, so if anybody can point to some code on Github that does something similar, even if its not javascript, I can probably figure it out. I haven't found anything besides bitpay/coinbase integration in Google.



