this is not how credit cards work. you probably just have a pending charge on your account and your money is not gone.
also, if the card was declined, you actually did not pay for anything.
if there was no typo anywhere, ask the bank that gave you the card what the problem is.