To scan a credit card, you need a credit card scanner - that's a piece of hardware that plugs into the earphone jack of the phone.
If you want to enter your credit card info to buy something, you'll have to do it manually, with the keyboard. Autocorrect shouldn't affect anything, but if it does, you'll have to turn it off when entering credit card info.