Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: Loco on September 29, 2014, 02:20:27 AM



Title: How can i generate addresses for my online service? and check the payment?
Post by: Loco on September 29, 2014, 02:20:27 AM
I apologize if this has already been posted (Im sure it did ), but with my poor english using the search tool I cant understand if I found what I need.

Im starting with a friend an online service.
The user enters in the webpage, full a few information, and after acepting terms and conditions, it should appear an automatic address (that if it has the amount of payment, would be better )

I dont know how to put that in the webpage. Does blockchain has this kind of service?

Also I would like after this, to check if the payment has been done correctly, so I can provide my service to the user.

Sorry if this post has already been made. I would apreciate links to those posts. I installed apache2 and mysql with php a few weeks ago Im still learning, but working in bitcoin community its a dream I want to acomplish (:

Thanks all for your time.


Title: Re: How can i generate addresses for my online service? and check the payment?
Post by: williamj2543 on September 29, 2014, 02:35:06 AM
Blockchain.info receive payment api. Good luck!


Title: Re: How can i generate addresses for my online service? and check the payment?
Post by: Loco on September 29, 2014, 02:52:46 AM
wait wait that can be all...
what happend if blockchain falls, this will work? I would have to use a blockchain acount yes or yes? (I really dont mind to move the money. But it will generate a diferent address for each user it log in? )

Thanks for the quick response

EDIT: nice i just read all the blockchain api.  One thing i didnt understand if I can change the amount to be paid in each wallet generated but i think its something easy for them. must be there.

Thanks a lot :) close this please.

PD: someone said i could install bitcoin core in the server, meaby thats to much for me for the moment.


Title: Re: How can i generate addresses for my online service? and check the payment?
Post by: williamj2543 on September 29, 2014, 11:29:37 AM
You don't need a blockchain account, just a cold storage to receive the funds. If blockchain is down that means it won't work, and it wont generate an address for he user.


Title: Re: How can i generate addresses for my online service? and check the payment?
Post by: cjp on September 29, 2014, 05:40:22 PM
Search for "BOTG" (Bitcoin Off The Grid): it's a shell script (using the openssl commandline tool), which creates a public/private key pair, and corresponding Bitcoin address and Wallet Import Format private key.

The safest way to use it is to run it offline to generate a lot of Bitcoin addresses. Save the private keys in some secure place (NOT on your website: that's a way too visible target for hackers) and make back-ups of them (just what you'd normally do with a Bitcoin wallet). You might also want to check that they work (e.g. whether they can be imported) before using the corresponding addresses. Copy the Bitcoin addresses to your website (e.g. to a table in the website database). Any time your website needs a new Bitcoin address, it can take one from the not-yet-used addresses. Just make sure that, as your website consumes more and more addresses (e.g. because people keep making new accounts) you keep making and adding new addresses.


Title: Re: How can i generate addresses for my online service? and check the payment?
Post by: Loco on October 01, 2014, 10:17:31 PM
Search for "BOTG" (Bitcoin Off The Grid): it's a shell script (using the openssl commandline tool), which creates a public/private key pair, and corresponding Bitcoin address and Wallet Import Format private key.

The safest way to use it is to run it offline to generate a lot of Bitcoin addresses. Save the private keys in some secure place (NOT on your website: that's a way too visible target for hackers) and make back-ups of them (just what you'd normally do with a Bitcoin wallet). You might also want to check that they work (e.g. whether they can be imported) before using the corresponding addresses. Copy the Bitcoin addresses to your website (e.g. to a table in the website database). Any time your website needs a new Bitcoin address, it can take one from the not-yet-used addresses. Just make sure that, as your website consumes more and more addresses (e.g. because people keep making new accounts) you keep making and adding new addresses.


thats clever. putting like 10.000 addresses and use one by one, and have my private kept in my pc :P i will look it up.

thanks for the answers
(nevertheless i think i can trust the blockchain api, its never down the page of blockchain, and im not moving enourmous amounts of money. meaby its to much for now )

Thanks a lot (Y)


Title: Re: How can i generate addresses for my online service? and check the payment?
Post by: CrackedLogic on October 02, 2014, 07:51:06 PM
Search for "BOTG" (Bitcoin Off The Grid): it's a shell script (using the openssl commandline tool), which creates a public/private key pair, and corresponding Bitcoin address and Wallet Import Format private key.

The safest way to use it is to run it offline to generate a lot of Bitcoin addresses. Save the private keys in some secure place (NOT on your website: that's a way too visible target for hackers) and make back-ups of them (just what you'd normally do with a Bitcoin wallet). You might also want to check that they work (e.g. whether they can be imported) before using the corresponding addresses. Copy the Bitcoin addresses to your website (e.g. to a table in the website database). Any time your website needs a new Bitcoin address, it can take one from the not-yet-used addresses. Just make sure that, as your website consumes more and more addresses (e.g. because people keep making new accounts) you keep making and adding new addresses.


thats clever. putting like 10.000 addresses and use one by one, and have my private kept in my pc :P i will look it up.

thanks for the answers
(nevertheless i think i can trust the blockchain api, its never down the page of blockchain, and im not moving enourmous amounts of money. meaby its to much for now )

Thanks a lot (Y)


Well the chances of the blockchain going down is pretty slim.


Title: Re: How can i generate addresses for my online service? and check the payment?
Post by: deepceleron on October 03, 2014, 05:55:41 PM
Suspect user is gonna scam like this other thread, which was a fake "send btc get paypal" exchange: https://bitcointalk.org/index.php?topic=793707


Title: Re: How can i generate addresses for my online service? and check the payment?
Post by: sonofliberty on October 08, 2014, 01:29:30 PM
Well the chances of the blockchain going down is pretty slim.

No they aren't.

Did you think about using bitcoind to generate addresses and check payments?

This is what I am using to generate keypairs as a fallback solution:
https://github.com/zamgo/PHPCoinAddress


Title: Re: How can i generate addresses for my online service? and check the payment?
Post by: BitcoinExchangeIndia.com on October 08, 2014, 01:47:38 PM
Well the chances of the blockchain going down is pretty slim.

No they aren't.

Did you think about using bitcoind to generate addresses and check payments?

This is what I am using to generate keypairs as a fallback solution:
https://github.com/zamgo/PHPCoinAddress

How do u forward the amount to your cold wallet ?


Title: Re: How can i generate addresses for my online service? and check the payment?
Post by: williamj2543 on October 08, 2014, 03:03:35 PM
What I do is I generate a new address and add a label for the user for quick reference in the actual client, and I list transactions in the entire wallet, and associate the receiveing address with account (in the mysql database) and then credit it.