To repay by credit card, you can withdraw cash at the bank counter or ATM and then repay.
After the credit card is withdrawn, the bank will charge interest and handling fee, so when you have money to repay, it is best not to choose credit card to repay the loan, but to pay more.