Hi,
I'm a Web developer, my company is Osclass ( open source classifieds ) and I just have a few questions about how to integrate bitcoin as a payment system in a classified website.
I do already implemented blockchain and coinjar as pay per publish your ad, but I want to create a "pay for the goods" pluign that also works as a escrow.
I will generate a unique address per payment and then listen to it to know when the payment was made. When the buyer confirm the reception of the goods, I will release the funds and pay them to the seller.
My problem is how do I store the private keys on the database? I think my best option is to encrypt them and put the password hardcoded in a PHP file, so a SQL injection is not enough to get them but I'm not really sure how to proceed or if there's a better method.