Bitcoin Forum

Bitcoin => Bitcoin Discussion => Topic started by: giik on January 27, 2010, 07:51:02 AM



Title: Payment server
Post by: giik on January 27, 2010, 07:51:02 AM
As I have read in some topics (https://www.bitcoin.org/smf/index.php?topic=12.0 (https://www.bitcoin.org/smf/index.php?topic=12.0), https://www.bitcoin.org/smf/index.php?topic=19.0 (https://www.bitcoin.org/smf/index.php?topic=19.0)), a payment server is needed for a broader acceptance of Bitcoins.

I want to create a php webapplication which can process Bitcoins transactions. I have a LAMP system up and running, but until now I used bitcoins on Windows only. Can anyone help me to create a linux installation of Bitcoins with a command line interface?

Server runs Ubuntu 9.10 32-bit. Or should I use a different distribution?

My idea is simple:

- visitor wants to buy something;
- payment page shows him the amount of Bitcoins he has to pay, including an orderid and a ip-address of the server (because messages can only be sent through ipaddress-transactions);
- visitor makes a payment with his Bitcoin application and places the orderid in the message of the payment;
- server receives payment and checks orderid and amount;
- payment is received, visitor is sent a downloadlink/confirmation of purchase/etc.

Think this is possible with Bitcoin 0.2?


Title: Re: Payment server
Post by: riX on January 27, 2010, 10:04:46 AM
Instead of an ip-address, an unique bitcoin address should be created, and is also way less vulnerable. This is all that is needed for the server to keep track of incoming bitcoins.

You will have to do some programming to get command-line access to the needed functions.

I bet you could get someone to do it for you for some bitcoins  ;D


Title: Re: Payment server
Post by: giik on January 27, 2010, 10:44:44 AM
Instead of an ip-address, an unique bitcoin address should be created, and is also way less vulnerable. This is all that is needed for the server to keep track of incoming bitcoins.

Sirius-m said (https://www.bitcoin.org/smf/index.php?topic=25.msg129#msg129 (https://www.bitcoin.org/smf/index.php?topic=25.msg129#msg129)):
Quote
Unfortunately you can't attach a message when you send to a Bitcoin address. It's possible only when sending to an IP.

And:

Quote
I think it was some technical limitation. Satoshi could tell more about this?

Is it possible in Bitcoin 0.2 to attach messages when using a bitcoin address?


Title: Re: Payment server
Post by: riX on January 27, 2010, 11:33:51 AM
No, you can't send a message when sending to an ip, but that's what the _unique_ bitcoin address is for.

When the customer places an order, the server creates a new bitcoin address to be used for that order only. (This can be seen as the orderId if you want).
When the customer makes a payment to that bitcoin address/orderId, the server will know who it's from.
There's no need for a message.


Title: Re: Payment server
Post by: giik on January 27, 2010, 11:56:17 AM
This means that a server can process one payment at a time. Unless a server is capable of having more than one bitcoin address.


Title: Re: Payment server
Post by: riX on January 27, 2010, 12:49:07 PM
Wallets already support multiple bitcoin addresses.

You should check out "Options/Change your address" in your bitcoin app ;D


Title: Re: Payment server
Post by: giik on January 27, 2010, 01:23:17 PM
Wallets already support multiple bitcoin addresses.

You should check out "Options/Change your address" in your bitcoin app ;D

riX, you are absolutely right! :-[

Now all I need is a command line version of Bitcoin.

Command line is on the to-do list after 0.2.

Satoshi, when we may expect the new command line-abled version of Bitcoin? Or is it possible to compile Bitcoin 0.2 in a way it can be used by command lines?


Title: Re: Payment server
Post by: satoshi on January 28, 2010, 11:26:09 PM
That's the right way to do it as riX says.  The software can generate a new bitcoin address whenever you need one for each payment.  "Please send X bc to [single-use bitcoin address] to complete your order"  When the server receives that amount to the bitcoin address, that could trigger it to automatically fulfil the order or e-mail the shop owner.

Adding command line support is a high priority.  It's just a matter of getting the time to code it.


Title: Re: Payment server
Post by: The Madhatter on January 29, 2010, 02:32:51 AM
Great! I guess this statement obsoletes my last post. ;)

(https://www.bitcoin.org/smf/index.php?topic=25.msg178#msg178)

Adding command line support is a high priority.  It's just a matter of getting the time to code it.


Title: Re: Payment server
Post by: budi691 on June 15, 2017, 04:25:08 PM
Payment server?

I think it's normal
Because to grab a tuna, you can not use a small bait, but not a big bait.
Maybe it's just a term, but a big meaning in achieving success. So too with bitcoin.