NodeJS

plus-sign-simple

Integrate NodeJS and Firstdata

Trexle connects NodeJS to Firstdata and 100+ other payment gateways using a single plugin for one time annual fee

Firstdata and NodeJS Integration Guide

To connect First Data e4 to your Trexle account, you will need the following credentials:

  • Gateway ID – located in the administration settings of your First Data e4 account
  • Gateway password –  generated specific password for your terminal.

To find the required credentials follow these steps:

  1. Log to your First Data e4 account
  2. Click on the ‘Tasks’ in the right menu and choose ‘Terminals’
  3. Select the desired Terminal
  4. Click on the ‘Details’ tab and scroll down to your Gateway ID
  5. Bellow the Gateway ID is the option to view or generate the terminal’s password.

Take the credentials you just obtained from Firstdata and navigate to Trexle dashboard, click Payments Gateways and select Firstdata from the drop down menu as shown below.

Fill into your Firstdata credential and click Add Gateway. Click the Activate button next to Firstdata, and it will give you a success message and the button will turn into green. You should see something like below.

To integrate Firstdata and NodeJS you need Trexle API keys

In your NodeJS project, open a terminal and issue the following command:

npm install trexlejs

If you want to test, consider writing the following example in a test.js file:

var Trexle = require('trexlejs');

var trexle = Trexle.setup({
key: ‘your-api-key’,
production: false
});

trexle.createCharge({
amount: 400,
currency: ‘usd’,
description: ‘test charge’,
email: ‘[email protected]’,
ip_address: ‘66.249.79.118’,
card: {
number: ‘4242424242424242’,
expiry_month: 8,
expiry_year: 2018,
cvc: 123,
name: ‘John Milwood’,
address_line1: ‘423 Shoreline Park’,
address_city: ‘Mountain View’,
address_postcode: 94043,
address_state: ‘CA’,
address_country: ‘US’
}
}, function (response) {
console.log(response.body);
});

Then run the code:

node test.js

For testing purposes, you can use any of the card numbers listed below. Insert any expiration date in the future with these cards:

  • Visa Level 2 – 4275330012345675 (replies with a referral message)
  • JCB – 3566007770003510
  • Discover – 6011000993010978
  • MasterCard  – 5424180279791765
  • Visa  – 4005550000000019 or 4111111111111111
  • MasterCard Level 2 – 5404980000008386
  • Diners – 36555565010005
  • Amex – 372700997251009

Firstdata Supported Countries

Firstdata Supported Payment Processing Actions

✔ Purchase
✔ Authorize
✔ Capture
✔ Void
✔ Credit
✔ Recurring
✔ Card Store

Key Features

Credit Card Vault: securely store your customers sensitive credit card data using tokens.
Instant PCI-DSS Compliance: your customers credit card data never touches your site or server.
Multiple Gateway Support: Connect your NodeJS site to 100+ payment gateway

About Trexle

Trexle is a powerful online recurring subscription billing platform that integrate Firstdata and other +100 payment gateways with NodeJS and other dozen of e-commerce platforms.

About Firstdata

First Data Global Gateway e4 is a payment gateway geared towards providing safe, smart and effective payment strategy to online merchants. It is easy to integrate and offers several interface options to choose from, depending on merchants’ specific needs. It It is a highly competitive payment gateway solution for businesses wanting a broader set of processing capabilities, a more intuitive user-interface, greater reporting capabilities and simplified integration, documentation and processes.

About NodeJS

Node.js is an open-source, cross-platform JavaScript runtime environment for executing JavaScript code server-side, and uses the Chrome V8 JavaScript engine. Historically, JavaScript was used primarily for client-side scripting, in which scripts written in JavaScript are embedded in a webpage's HTML, to be run client-side by a JavaScript engine in the user's web browser. Node.js enables JavaScript to be used for server-side scripting, and runs scripts server-side to produce dynamic web page content before the page is sent to the user's web browser.

Cart