If I understand this - you've already paid your tax due by credit card.
You may not have filed your tax return yet.
If you haven't filed - select to pay via paper check for that government agency. That will prevent a double payment.
If you have filed your return with direct debit set - contact the government agency to stop the direct debit payment and let them know you've paid via credit card.