However, if you don't want to delete the recorded cash payment, I'd suggest unlinking the payment made to an invoice. This way, the transaction will show as open again and you can record the CC invoice payment to tag the invoice as close.
Follow these steps to unlink:
Click Sales menu at the left panel.
Choose the Customers section.
Select the customer name. Then look for the invoice under Transaction List and double-click the transaction to open the Invoice page.
Click the Payment made link in the invoice. Then, click the Date link.
In the Receive Payment window, unchecked the invoice to mark it as open again.
Hit Save and close.
After that, you can now enter a newly received payment transaction and use CC as a payment method. You can click the article provided above to see the steps.
Please refer to this article to view information on how the Sales page gives you a great at-a-glance view of the status of sales transactions, open invoices, and paid invoices: View sales transactions.
Please let me know if you need further assistance. I'll keep my notifications open. Stay safe and well!