Gateway Components (Gateway.js)

Add Gateway services to your integration.

Gateway.js is a JavaScript library that allows you to customize your integration with additional gateway's services. To start using Gateway.js, you need to load the library with a < script > tag.

Quick Start Guide

1. Add the Gateway.js Script Tag to your Checkout Page

<script 
        src="https://secure.networkmerchants.com/js/v1/Gateway.js">
</script>
The script tag must load from the payment gateway. You should not attempt to host the file and load it from your own domain.

2. Create an API Key

Gateway.js authenticates with a public API key with Checkout permissions. Create this in the Merchant Portal under Settings > Security Keys.

3. Initialize the library

Provide the created key to Gateway.create to initialize the library.

const gateway = Gateway.create('collect_checkout_0000000000000000000000');

4. Initialize additional gateway extensions