We are on-line ticketing service company using our own payment gateway. Back end system shows daily tickets sold for various shows from different merchant clients. Daily we receive bank payment matched with back end totals *** of credit card commission. At the end of every event or shows, we are entitled to get commission based on total ticket sold, some % and others fixed. We then need to pay back our merchant client with the amount collected from bank *** of all deductions such as company commission income, credit card charges and tax paid. How is the best way to book related entries upon selling tickets, collecting payments from bank and remittance of *** amount to merchant client?