NodeJS

plus-sign-simple

Integrate NodeJS and Iats Payments

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

Iats Payments and NodeJS Integration Guide

For iATS Payments integration, you will need the following credentials: Client Sub-Code (6-Digits) and Password information.

When you open an account with iATS you will receive the above credentials in an e-mail:

To access these credentials online, log to your iATS payment account (refer to your email for Client Code, as you will need it to log in).

Click on the User profile > Account Setup


Your Client Code will be displayed here.

If you have forgotten or haven’t changed your temporary password, click on User Profile > Change Password

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

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

To integrate Iats Payments 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

TEST CREDIT CARD NUMBERS: NORTH AMERICAN AND UK

To test the authorization and rejection responses related to a charge, use the following test credit card numbers:

Visa1 4111111111111111
Visa2 4222222222222220
MasterCard 5111111111111118
American Express 371111111111114
Discover 6011111111111117
CVV2 Any arbitrary 3 digits (4 digits for Amex)
Expiry Date Any arbitrary date later than today’s date

 

1To test the Authorization and Rejection responses related to a Charge
2To test the Auth responses related to both Charges and Refunds

Iats Payments Supported Countries

Iats Payments 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 Iats Payments and other +100 payment gateways with NodeJS and other dozen of e-commerce platforms.

About Iats Payments

iATS Payments is a leading payment gateway for nonprofit organizations. iATS is popular in the US, UK, Canada and France and allows you to accept donation payments from 40+ countries. This following article will help you install and configure the add-on so you can accept donations with the iATS payment gateway quickly and easily.

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