NodeJS

plus-sign-simple

Integrate NodeJS and Merchant Warrior

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

Merchant Warrior and NodeJS Integration Guide

For Merchant Warrior integration you will need to obtain a Merchant UUID, API Key and API passphrase.
To obtain the required credentials, log in to your Merchant account at https://barracks.merchantwarrior.com

You will see Merchant Warriot dashboard. Click the Direct API menu item along the left side.

Take note of the three identifying elements on the Direct API page. You will need each of these to configure the gateway connection.

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

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

To integrate Merchant Warrior 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 with CBA, ANZ, NAB, Bendigo & BankWest:

  • 5123456789012346  05/21   CVN 123 (MasterCard)
  • 4987654321098769  05/21   CVN 123 (Visa)
  • 345678901234564    05/21   CVN 1234 (Amex)
  • 30123456789019      05/21   CVN 123 (Diners Club)

For testing with Westpac, St. George & Bank of Melbourne:

  • 4564710000000004   02/19   CVN 847 (Visa Approved)
  • 5163200000000008   08/20   CVN 070 (MC Approved)
  • 4564710000000012   02/05   CVN 963 (Visa Expired)
  • 4564710000000020   05/20   CVN 234 (Visa Low Funds $10 credit limit)
  • 5163200000000016   12/19   CVN 728 (MC Stolen)
  • 4564720000000037   09/19   CVN 030 (Visa Invalid CVV2)
  • 376000000000006     06/20   CVN 2349 (Amex)
  • 343400000000016     01/19   CVN 9023 (Amex Restricted)
  • 36430000000007       06/22   CVN 348 (Diners)
  • 36430000000015       08/21   CVN 988 (Diners Stolen)

Merchant Warrior Supported Countries

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

About Merchant Warrior

Merchant Warrior is an Australia based payment provider that offers online payment solution to merchants worldwide that caters to a wide range of merchants’ specific needs. They provide their clients with an enhanced set of features and extensive support that aids merchants in delivering exceptional service and, in doing so, promotes customer satisfaction, product sales and processing volume.

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