How to Authenticate Financial Transactions on My Website

I have a website and we are going to implement some payment gateways for people who purchase items from my website. I do not know much about web security but I would like to know how the system works. I want to know how we can authentic the cards we will be receiving payment from.
