You can create a transfer transaction that does just that. Simply set the source account to your bank or cash account and then set the destination account to your credit card account.