1.0.4 • Published 5 years ago
node-ipg-connect v1.0.4
This library provides developers with a simple binding for the First Data IPG Connect payment gateway.
Requirements:
Node.js version 4.8.4 or higher
An IPG account (see Registration & Configuration section below)
Installation:
To install First Data IPG Connect from terminal:
npm install node-ipg-connect
You can require the module and setup the Connect object with the options as detailed below.
Require the module:
var Connect = require('node-ipg-connect');
Configuration:
var ipg = new Connect({
storeid: "YOUR_STORE_ID", // Store Id is required
sharedsecret: "YOUR_SHARED_SECRET", // Shared Secret is required
successURL: "SOME_DOMAIN.com/thanks", // Your success page the gateway will redirect customer to this URL after transaction approval
failURL: "SOME_DOMAIN.com/sorry", // Your fail page the gateway will redirect customer to this URL after a declined transaction
sandbox: true // Set to 'true' for 'Sandbox' and 'false' for 'Live'- Use the correct test or live credentials
});
Please visit the Wiki for a quick tutorial on how to build a simple IPG Connect payment app using Nodejs and Express with this module.