Have you thought about using third party software to do this ?
I was involved with designing POS system a few months ago and believe me, it was so much easier to use one than to develop one on my own...
The software I used was "The Authorizer" from ATOMIC software.
HTH