Also what is a proper transaction flow? Currently I have things set up like this, but as it is advised to avoid both accounts and getbalance this is clearly wrong.
- Registration: getnewaddress for user setaccount to user ID.
- Transaction: getbalance of users account and confirm that is larger than purchase price.