Can I cancel the recent charge and resubmit it to a different credit card?

It's not possible to cancel and refund a charge and then resubmit it to a different credit card. You'll need to cancel the Yahoo service you purchased and and then place a new order with the desired credit card.