what to do with a bank receipt that doesn't match invoice

SOLVED

Our arrangement with our payment processing company is such that when a payment is made by a guest, a transaction fee is deducted from the original payment and the net amount is then deposited into our bank account. I want to show the total amount in the invoice while having an account of the transaction fees that we pay.  The process of applying any deposits received into our bank account to the appropriate customer invoice is relatively straightforward however our question is: When the $779.30 deposit is received, how do we allocate the full value ($800.00) of the deposit to the customer invoice while also ensuring the  transaction fee is allocated to the correct expense account? .