Integrate NodeJS and Merchant One Gateway
Trexle connects NodeJS to Merchant One Gateway and 100+ other payment gateways using a single plugin for one time annual fee
Merchant One Gateway and NodeJS Integration Guide
You need to obtain API Login ID = your account name and Transaction Key = your account password from Merchant One Payment Gateway.
Once you have these to credentials you can either use the sandbox mode for testing or live mode for production on your site.
Take the credentials you just obtained from Merchant One Gateway and navigate to Trexle dashboard, click Payments Gateways and select Merchant One Gateway from the drop down menu as shown below.
Fill into your Merchant One Gateway credential and click Add Gateway. Click the Activate button next to Merchant One Gateway, and it will give you a success message and the button will turn into green. You should see something like below.
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
Transaction Testing Account
Transactions can be tested using one of two methods. First, transactions can be submitted to any merchant account that is in test mode. Keep in mind that if an account is in test mode, all valid credit cards will be approved but no charges will actually be processed.
The Payment Gateway demo account can also be used for testing at any time. Please use the following username and password for testing with this account:
Username: demo
Password: password
Transaction POST URL
All transactions should be submitted to the following URL:
https://secure.merchantonegateway.com/api/transact.php
This URL is the same for both Live and Test Mode environments.
Test Transaction Information
Test transactions can be submitted with the following information:
Visa 4111111111111111
MasterCard 5431111111111111
DiscoverCard 6011601160116611
American Express 341111111111111
Credit Card Expiration: 10/10
Amount > 1.00
Merchant One Gateway Supported Countries
Merchant One Gateway Supported Payment Processing Actions
✔ Authorize
✔ Capture
✔ Void
✔ Credit
✔ Recurring
✔ Card Store
Key Features
About Trexle
Trexle is a powerful online recurring subscription billing platform that integrate Merchant One Gateway and other +100 payment gateways with NodeJS and other dozen of e-commerce platforms.
About Merchant One Gateway
Merchant One is a direct processor who combines cutting edge technology with exceptional service to provide you with the best solutions for your merchant processing needs. They have been in business for over 12 years and proudly service tens of thousands of merchants across the country.
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.