0

I have a store that uses bitcoin as a payement.
I want to make users deposit to their balance in the site, as I saw in many sites,
a bitcoin address is generated for each user to deposit funds to it, and use his dashboard in the site to withdaw it to his BTC address anytime.

I am using PHP. How to do it?

1 Answer 1

0

It is a way much better practice to generate a new address for every new order and not per user, as this would imply address reuse for returning customers, which is generally discouraged. Then the users won't have to keep their funds on your website and will only pay the exact amount for each order.

You can take a look at these open source projects for bitcoin written in PHP for starters.

4
  • i accepted your answer. But can you explain more how do i add balance in the site automatically when funds are recieved?
    – Pavel
    Commented Apr 4, 2015 at 14:12
  • The wallet keeps the balance for you. You will be notified for every each new payment as soon as it takes place. Allow for a few blocks to get confirmed, then you can dispatch the bought items from your store.
    – user11221
    Commented Apr 4, 2015 at 14:46
  • The link you gave me has many libraries that are useless, which library you're talking about?
    – Pavel
    Commented Apr 4, 2015 at 14:55
  • None in particular. You can create a new question and ask the members who are into PHP to suggest the best for your case.
    – user11221
    Commented Apr 4, 2015 at 15:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.