<p>I used on client website open source Bitcoin Payment Libriary (php/mysql) -</p>

<p><a href="https://github.com/cryptoapi/Payment-Gateway" rel="nofollow">https://github.com/cryptoapi/Payment-Gateway</a></p>

CC BY-SA 3.0
2014-11-08T20:49:28.710Z
2014-11-08T20:49:28.710Z
Alla
<h2>Survey order:</h2>

<ul>
<li>You ought to have a system that uniquely identifies the survey and assigned it some string of characters. This can be just a simple number, or something more complex.</li>
<li>You need to use that unique id to request a Bitcoin address form bitcoind with a unique account name derived from that id. I would also advise hashing the account name, so in case your wallet gets compromised your customers' information won't get leaked.</li>
<li>You will present that Bitcoin address to the survey owner to send their Bitcoins to.</li>
<li>You should periodically check bitcoind for new transactions. In order to avoid double-spends, you should wait until you get at least 1 confirmation (preferably 6) on the transaction before letting the survey go live.</li>
</ul>

<h2>Survey is live:</h2>

<ul>
<li>You need to have a system that uniquely identifies the users filling out the survey, so they won't do the same survey twice.</li>
<li>Each user will need to provide their withdraw address (and you should check whether it is okay)</li>
<li>You should track who fills out a particular survey and keep a log of their addresses. This way you would be able to make a single payment to all of them at the end of the day, rather than make an individual payment to each person. This would save you money on transaction fees.</li>
<li>You can either make payments from the account unique to the survey, or move all the money into a single payout account and send payments from there. The latter would make the user receive only one payment, rather than be spammed with many. And again, this would lower your transaction fees.</li>
<li>You need to keep track of how much money is left for each survey and when to switch it off. You can either do that internally, or through appropriate balances in bitcoind (moving money from the account each time someone completes the survey).</li>
</ul>

<p>These should be the basics. As always, keep your wallet secure, password protected and backed up. In case you have any more questions, you can always ask them on this StackExchange. If you need consulting, you can contact me (ThePiachu-gmail-com).</p>

CC BY-SA 3.0
2012-10-23T06:37:40.520Z
2012-10-23T06:37:40.520Z
ThePiachu
<p>I am implementing a website where some users can create surveys and pay the people that complete them with bitcoins. What steps should I follow to implement this payment system? Like, information needed from each party, steps to take to confirm payment, etc.</p>

CC BY-SA 3.0
2012-10-23T05:00:02.990Z
If you need some consulting on Bitcoin-related issues, you can contact me - ThePiachu-gmail-com . I will also try to answer your question soon, once I deal with some things.
ThePiachu
<website-integration><payment-processors>
How should I integrate Bitcoin payments in an online service?
Juan Jara
# How should I integrate Bitcoin payments in an online service?

(Asked by: username_0 on 2012-10-22)

I am implementing a website where some users can create surveys and pay the people that complete them with bitcoins. What steps should I follow to implement this payment system? Like, information needed from each party, steps to take to confirm payment, etc.

**Tags:** website-integration, payment-processors

> **Comments:**
> **username_1**: If you need some consulting on Bitcoin-related issues, you can contact me - username_1-gmail-com . I will also try to answer your question soon, once I deal with some things.  

---

## 2 answers

### Answer by username_1 on 2012-10-23. Score: 4 | Accepted answer

## Survey order:

* You ought to have a system that uniquely identifies the survey and assigned it some string of characters. This can be just a simple number, or something more complex.
* You need to use that unique id to request a Bitcoin address form bitcoind with a unique account name derived from that id. I would also advise hashing the account name, so in case your wallet gets compromised your customers' information won't get leaked.
* You will present that Bitcoin address to the survey owner to send their Bitcoins to.
* You should periodically check bitcoind for new transactions. In order to avoid double-spends, you should wait until you get at least 1 confirmation (preferably 6) on the transaction before letting the survey go live.

## Survey is live:

* You need to have a system that uniquely identifies the users filling out the survey, so they won't do the same survey twice.
* Each user will need to provide their withdraw address (and you should check whether it is okay)
* You should track who fills out a particular survey and keep a log of their addresses. This way you would be able to make a single payment to all of them at the end of the day, rather than make an individual payment to each person. This would save you money on transaction fees.
* You can either make payments from the account unique to the survey, or move all the money into a single payout account and send payments from there. The latter would make the user receive only one payment, rather than be spammed with many. And again, this would lower your transaction fees.
* You need to keep track of how much money is left for each survey and when to switch it off. You can either do that internally, or through appropriate balances in bitcoind (moving money from the account each time someone completes the survey).

These should be the basics. As always, keep your wallet secure, password protected and backed up. In case you have any more questions, you can always ask them on this StackExchange. If you need consulting, you can contact me (username_1-gmail-com).


---

### Answer by username_2 on 2014-11-08. Score: 0

I used on client website open source Bitcoin Payment Libriary (php/mysql) -

<https://github.com/cryptoapi/Payment-Gateway>


---

