How you add a payment gateway to your website will depend on the type of payment gateway you choose. Some ecommerce platforms offer plugins and extensions to make integration pretty easy. Others will require you to manually add code to your website to integrate the gateway.