[ Web Proxy ]
URL:
Viewing: https://docs.nmi.com/docs/gatewayjs [Back]  [Original]

Gateway Components (Gateway.js)
HomeGuidesRecipesAPI Reference
Gateway Components (Gateway.js)

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

HTML
<script 
        src="https://secure.networkmerchants.com/js/v1/Gateway.js">
</script>
Customer_Satisfaction.png [Customer_Satisfaction.png]
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('USER.PUBLICAPIKEY');

4. Initialize additional gateway extensions


Transaction History Component
Payer Authentication (3DS)
Did this page help you?
Copy Page
Privacy Policy Terms and Conditions

Web Proxy Viewer  |  New URL  |  Original Page