NodeJS

plus-sign-simple

Integrate NodeJS and Jetpay

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

Jetpay and NodeJS Integration Guide

After login to your account dashboard, you need to generate the API key and save

  1. Merchant Terminal ID (jp_tid)
  2. API Key
  3. Security Token

Apart of the API Key together with a part of the Security Token set is converted to a Key (jp_key) which needs to be part of every transaction.

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

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

To integrate Jetpay 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 following is a listing of Test Credit & Debit Card numbers for testing your application. All numbers pass LUHN checking. Please refer to the XML Schema for information on CVV, AVS and ZIP Matching for specific values.

    • American Express - 3111111111111117
    • American Express - 378282246310005
    • American Express - 371449635398431
    • American Express Corporate - 378734493671000
    • Diners Club - 30569309025904
    • Diners Club - 38520000023237
    • Discover - 6111111111111116
    • Discover - 6011111111111117
    • Discover - 6011000990139424
    • MasterCard - 5111111111111118
    • MasterCard - 5555555555554444
    • MasterCard - 5105105105105100
    • Visa - 4111111111111111
    • Visa - 4012888888881881

 

  • All expiration dates set in the future will return - APPROVED
  • All expiration dates set in the past will return - DECLINED

 

Test ACH Numbers

JetPay processed Automated Clearing House (ACH) payments as well as Credit & Debit Cards. Use the following to test ACH processing through the JetPay platform.

  • Routing Number (DDA) - 123123123
  • Account Number (ABA) - 123456789

Jetpay Supported Countries

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

About Jetpay

JetPay Merchant Services, LLC (jetpay.com & jetpayms.com) is a merchant account provider specializing in technology solutions for the e-commerce and card-not-present marketplace. JetPay’s website states that the company’s services adapt to any website/payment application, as it requires no special software or setup. JetPay has been an accredited business of the Better Business Bureau since 2015 and currently holds an “A+” rating.

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