NodeJS

plus-sign-simple

Integrate NodeJS and Iveri

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

Iveri and NodeJS Integration Guide

You need to get the following credentials from your account at iVeri

  1. Application ID
  2. User Name
  3. Password

Using these credentials you can access the web based API and integrate the payment gateway on your site.

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

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

To integrate Iveri 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

The iVeri Gateway provides a mechanism where a merchant can perform test transactions that are routed to an
iVeri Gateway issuer simulator. This enables a merchant to complete testing within a test environment. When the merchant is ready s/he can perform live transactions which are routed to the genuine card issuer.

A merchant specifies the mode of a transaction by setting Mode as “Test” or “Live”, and sends their corresponding Test or Live ApplicationID.

Sending the following credit card numbers to the Test environment has the following results:
Credit Card Number Result
4242424242424242 returns “Authorised”
2121212121212121 randomly returns “Hot Card”, “Please Call” or “Denied”
5454545454545454 randomly returns “Unable to process” or times out
All other card numbers
(eg “1111222233334444”)
returns “Invalid card number”

NOTES:
1. The Expiry Date of the above test card numbers should be any date in the future. However, please do not use a date more than 2 years in the future.
2. Card Security Code (CVV) Field – you can use any three numbers for testing purposes.
3. If you want to generate the error “Invalid Expiry Date”, make the expiry date in the past.
4. Iveri Batch merchants must use the following test USN number in the header record: 2161342983
5. Merchants are requested not to abuse the test environment more than their realistic requirements.

Iveri Supported Countries

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

About Iveri

iVeri is a payments technology company which enables banks and businesses to facilitate transaction acceptance. They are based in Johannesburg, South Africa. iVeri, established in 1998, is South Africa's largest provider of technology for virtual and mobile commerce. iVeri is PCI DSS compliant,and EMV approved. iVeri's mobile payment solution has been listed as a mobile payment solutions that “meet industry standards and MasterCard best practices” by MasterCard and is listed as a Visa ready for mPOS solution.

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