BitcoinTalk

Payment server

Payment server

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=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?

Re: Payment server

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  Grin

Re: Payment server

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):
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?

Re: Payment server

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.

Re: Payment server

This means that a server can process one payment at a time. Unless a server is capable of having more than one bitcoin address.

Re: Payment server

Wallets already support multiple bitcoin addresses.

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

Re: Payment server

Wallets already support multiple bitcoin addresses.

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

riX, you are absolutely right! Embarrassed

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?

Re: Payment server

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.