Credit Card Charges by Bank Capture during Payment Received

Would like to know if there’s any settings or workaround for Credit Card Payment Received from Customer during POS. Normally bank will charge certain percentage from the transaction, and this would be our expenses for bank charge.

eg

Invoice Amount $ 1000
Credit Card Charges : 2%
The amount that auto debit to our BANK would be only $ 980 ( After deduct of 2% ).

You need to create credit card GL account and link to mode of payment. All the credit card sales will be settled to this account. Next day you settle this account based upon the actual $ realization in your bank. For settlement you can use journal entry

CR credit card account
DR bank account
DR credit card commission expense