A payment gateway is software that encrypts the payment data. It offers a secure channel between your website/browser and the credit card company. The encrypted data is sent to the payment processor.  A payment processor is a company that handles credit/debit card transactions, while the payment gateway receives approvals or denials of the payment transaction.