If you paid by credit card do they transfer refund directly into your bank account, or back onto your card?

Bit confused by the refund portal.