Bitcoin Forum
November 09, 2024, 06:18:14 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Designer wanted: Help me build an open source point of sale system!  (Read 1288 times)
jav (OP)
Sr. Member
****
Offline Offline

Activity: 249
Merit: 251


View Profile
August 01, 2011, 10:51:03 PM
 #1

I already posted this on Reddit a little while ago ( http://www.reddit.com/r/Bitcoin/comments/j0bva/help_me_build_a_point_of_sale_application_design/ ), but not much came out of it. So I want to give it a shot here again:

I'm working on a Point of Sale system written in Python and targeting standard PC hardware. Think laptop + external monitor. The laptop is used by the merchant to set up a new transaction and the external monitor shows the necessary details to the customer (amount, QR code, etc.).

I have most of it written and I will be releasing this as open source soon. Among other things, it will be a demonstration of the green address approach I described here: http://bitcointalk.org/index.php?topic=32818.0 . I wanted to ask the community if someone would be interested in designing the payment screens. They are just HTML pages.

Three screens are needed (the plan is to show them in a browser set to fullscreen mode):

  • Payment info: Shows amount, Bitcoin address, in some cases conversion details (if the merchant entered a USD price which was converted to BTC, the course that was used will be displayed) and finally a QR code. Here is a simple page that has these components: http://pastebin.com/8Xby7nNs . You are free to modify and style the page as you see fit (also adding phrases like "Please pay to this address..." and whatever you find necessary.)
  • Payment received: A page that states that a payment has been received.
  • Idle: A page that will be shown when the system is idle. Maybe just a big Bitcoin logo or some kind of welcome screen. It's up to you.

If you decide to contribute, you should be willing to license your design under an open license, since this project will be open source. You can also check out the comments on the Reddit thread I linked, which has a few more details.

I hope there are a few people out there who would enjoy contributing to something like this. Looking forward to working with you!

Hive, a beautiful wallet with an app platform for Mac OS X, Android and Mobile Web. Translators wanted! iOS and OS X devs see BitcoinKit. Tweets @hivewallet. Donations appreciated at 1HLRg9C1GsfEVH555hgcjzDeas14jen2Cn.
semyazza
Sr. Member
****
Offline Offline

Activity: 339
Merit: 250


View Profile
August 03, 2011, 02:30:08 PM
 #2

Would be interested in helping.  Is a git repo setup?  Would you allow the whole project to be under a BSD license or the Unlicense(http://unlicense.org/)?
jav (OP)
Sr. Member
****
Offline Offline

Activity: 249
Merit: 251


View Profile
August 03, 2011, 05:14:26 PM
 #3

Would be interested in helping.  Is a git repo setup?  Would you allow the whole project to be under a BSD license or the Unlicense(http://unlicense.org/)?

Cool to hear that! I was planning to use the MIT license, but as I understand it, that pretty much boils down to the same thing.

I will be putting something up on Github shortly, but want to get it a little bit into shape before I do that.

For a bit more context, here is a quote from a PM I messaged to someone else:

Quote
For the first iteration I want to build something fairly simply to get it out there quickly. To that end I'm aiming for the following:

- have a very simple backend, which doesn't have to look nice for now (only the merchant sees this)
- have HTML pages that display the current status to the customer (this should look nice and I especially welcome input on this part)
- run in combination with the standard Bitcoin client and let the Bitcoin client display number of confirmations and stuff like that

I'm currently using a browser to display the HTML pages to the customer, but just realized that it might be possible to use Qt's QWebView for this instead. I'm already using Qt for the backend, so that would probably be easier. I'm going to look into that.

Here is a screenshot of the current state: http://imgur.com/pWxln . In a few days I should have something ready that I can put on github, so you can get a better sense of the context.

As I mentioned, the part where looks matter the most, is the HTML status pages displayed to the customer. These can be three separate HTML pages (as mentioned in the Reddit post), which will displayed by the backend code accordingly. Alternatively, I was thinking it might be more flexible to use a single page for the frontend and have some Javascript functions that switch between the different states. This might give more design freedom in the sense that at some later point we could add animations for the transitions between states (e.g. from "please pay" to "payment received"). The backend can then initiate those Javascript functions to perform the transition.

I'll keep you updated!

Hive, a beautiful wallet with an app platform for Mac OS X, Android and Mobile Web. Translators wanted! iOS and OS X devs see BitcoinKit. Tweets @hivewallet. Donations appreciated at 1HLRg9C1GsfEVH555hgcjzDeas14jen2Cn.
brandon@sourcewerks
Member
**
Offline Offline

Activity: 62
Merit: 10



View Profile
August 04, 2011, 12:17:27 AM
 #4

Will also take a look at this...
jav (OP)
Sr. Member
****
Offline Offline

Activity: 249
Merit: 251


View Profile
August 04, 2011, 01:23:50 AM
 #5

Alrighty, I just put something up on GitHub: https://github.com/javgh/greenaddress-pos-tools .

As mentioned in the README, here is how to get started:

- install dependencies: python-qrencode, python-qt4
- add "server=1" (but not daemon=1) to bitcoin.conf and configure rpcuser & rpcpassword
- edit RPC_URL in controller.py
- run: python pos-tool.py

I'm developing on Linux, so this is only tested on Linux. But I would hope this to be fairly portable. Patches to make it work (better) on Windows and/or Mac OS are welcome.

You should see two windows popping up: The merchant backend and the customer display. If you enter a BTC amount and click "show", a new Bitcoin address and associated QR code will be generated and displayed to the customer. The tool then listens for transactions to the Bitcoin address and as soon as it receives something, it changes the display to read "Payment received". If the payment was done via Instawallets green address, it will add the phrase "Verified by Instawallet". The merchant is expected to use their Bitcoin client to see if the correct amount was sent.

What is missing:

- some hardcoded stuff should be moved into a configuration file
- a button to bring the customer display to fullscreen and some logic to go back to idle mode after a while
- interfacing with Mt.Gox and/or Tradehill to do currency conversion
- slick design for the customer display

If you look at the code, you will see that it contains a simple Bitcoin node implementation. This is used to listen for transactions and get notified as soon as one arrives. This could be done much easier with a patch to bitcoind (for example a version of Gavin's monitor patch: https://github.com/bitcoin/bitcoin/pull/198 ), but an important goal of this project is to have as few dependencies as possible and especially be able to run with a vanilla Bitcoin daemon. This is why I went the route of using ArtForz' "half-a-node" implementation to listen for transactions manually. (Hopefully this can be dropped at some point in the future, when the official client allows some form of push-notification directly.)

As to the customer display: As mentioned before, I now went the route of putting it all into a single HTML file (data/customer_display.html) and using Javascript functions to toggle between the different states ("show_idle()", "show_payment_info()", "show_payment_received()"). The Javascript functions will show and hide DIVs. In designing a new look, you can pretty much just work with that HTML file directly, as it also contains some debug links to trigger those Javascript functions. This should also make it fairly easy to bundle a number of different "skins" for the system.

Looking forward to your input!

Hive, a beautiful wallet with an app platform for Mac OS X, Android and Mobile Web. Translators wanted! iOS and OS X devs see BitcoinKit. Tweets @hivewallet. Donations appreciated at 1HLRg9C1GsfEVH555hgcjzDeas14jen2Cn.
jav (OP)
Sr. Member
****
Offline Offline

Activity: 249
Merit: 251


View Profile
August 23, 2011, 05:08:04 PM
 #6

Hey! I released a first version now, with a simple design I put together myself. See this thread: https://bitcointalk.org/index.php?topic=38893.0 . Of course the design can be improved/replaced etc., if one of you are still interested in working on that.

Hive, a beautiful wallet with an app platform for Mac OS X, Android and Mobile Web. Translators wanted! iOS and OS X devs see BitcoinKit. Tweets @hivewallet. Donations appreciated at 1HLRg9C1GsfEVH555hgcjzDeas14jen2Cn.
Vernon715
Full Member
***
Offline Offline

Activity: 182
Merit: 100



View Profile
February 26, 2012, 09:29:27 PM
 #7

If I were you, I would look at the raspberry pi computer for this application. It would lower the price of the unit.

Please donate: 1FfJzfpGCXD6saKqmMs8W1qt9wouhA98Mj

http://bitcoinpyramid.com/r/1642

100101011010100100101010010111001010010101010100101001000100101010101010101010
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!