Post
Topic
Board Project Development
Re: So You Want To Use Bitcoin On Your Website?
by
Scamalert
on 26/04/2015, 07:43:49 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:




This thread is bookmarked!
Damn, you are giving away a lot of gold nuggets here.

The code you showed is very close to what I had in mind.
I must admit, never though about the negative aspects,
I do consider the dust a big problem, but the adminstration (delete/add) could be a difficult.

Thank you so much for sharing Smiley