Credit card transactions

Hi,

I have been wondering on how online business resive their money from credit cards how does the transaction works and what they use for security ?
anyone knows???