You can understand payment gateways as a middleman between you and your customers’ payment medium (credit/debit card or other online payments). So basically, we can say payment gateways secure confidential payment information between banks and customers.