You need:
- A merchant account
- A software interface with the bank you are wanting to use and have the merchant account with.
- A secure certificate.
Then you will need to pass the variables in your shopping cart to this interface, ie. ccnumber, expire, name of card etc so that it gets verified in real-time and returns an approval or rejection.
I suggest investigating your banking institutions to see what they offer.