A payment gateway encrypts and transmits customer data; a processor moves funds between accounts. Both are essential for online credit card transactions.