I'm working on a Django web application that offers the users the possibility to buy courses. To do this, each user has a wallet that they fund with money, which they can use for the available products.
My uncertainty lies with the way I should keep track of all these transactions and of each user's balance. I imagine that there should be a site account with its own wallet and a payment processor account with its own wallet. I do record each transaction both ways, but I don't know what the balance of the payment processor account should be, if I should fund it constantly and what not.
I hope my explanation makes sense.