Post
Topic
Board Project Development
Re: So You Want To Use Bitcoin On Your Website?
by
coinableS
on 25/04/2015, 23:50:37 UTC
That is a very nice package, good work.

I have no experience in make BIPS, but I have always thought that if I should make a small webstore, then would I take a very pragmatic approach. I would generate a long list of public address with www.bitaddress.org. and then only expose the public part to the webpage. Use some kinda a java script to present the user with order number and unique public adresss.

Thanks,
You can do it that way too with pre-generated addresses and javascript. In fact I gave that method a try before as well.

I created a javascript file with hundreds of addresses and had it select one at random when the user went to buy a product. It was difficult since I had to constantly update the list and remove old addresses. Also with javascript users can see your code so a malicious user could start sending dust amounts to my addresses to try and mess up my records/bookkeeping. It looked something like this:

JSfiddle example

Code:




Send your BTC to: