There is an issue with the payout calculation. The total amount in the database is 3413, but PayFast only received 1309.In the affiliate account, it should only show half of the amount received in PayFast, which is 654.Identify the cause of this issue and determine why it happened. To begin resolving this, add a table to log transactions in the affiliate account. Whenever an amount is added, an entry should be recorded in this log table.