A payment gateway is the processor that provides the payment service of online shopping.
There are many payment gateways to choose from including, stripe, paypal, etc.
Its a good idea to your homework when choosing a payment gateway as costs per transaction do vary.
The cheapest payment gateway is using a merchant account through your bank. Most big banks provide payment gateways.