How i can make credit card entry with extra amount paid by customer and credit card charges with VAT

Lets say we received 35 instead of 25 and allocated amount is 30 as per invoice. So in extra 5 amount 4 will go to credit card charges and 1 will go as a vat deduction by bank which vat input…please explain how we can manage the amount