I have no idea what you have done. Simply cancelling a sale automatically creates a refund.
Just use the cancel sale link and the system takes over, but if you have no money in your ebay account it will come from your bank account. Cards do not come into making refunds.