NodeJS

plus-sign-simple

Integrate NodeJS and Psp Payment

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

Psp Payment and NodeJS Integration Guide

For PSP Payment integration you will need the following credentials:

  • User ID (USER ID)
  • User Password (USER PWD)
  • Entity ID (CHANNEL ID )

All these credentials will be provided to you by email when you sign up with PSP Payment.

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

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

To integrate Psp Payment 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

  • Maestro
    6799851000000032
    Expiry Date12/2020
    CVC123
  • MasterCard
    5454545454545454
    Expiry Date12/2020
    CVC123
    5212345678901234
    Expiry Date12/2020
    CVC123
  • Visa
    4200000000000000
    Expiry Date12/2020
    CVC123
    4012001037461114
    Expiry Date12/2020
    CVC123
  • V PAY
    4822000000000000003
    Expiry Date12/2020
    CVC123
  • Discover Card
    6011587918359498
    Expiry Date12/2020
    CVC123
  • JCB
    3541599999092431
    Expiry Date12/2020
    CVC123
  • American Express
    377777777777770
    Expiry Date12/2020
    CVC123
    375987000000005
    Expiry Date12/2020
    CVC123
  • Carte Bleue
    5555555555554444
    Expiry Date12/2020
    CVC123
  • Dankort
    5019717010103742
    Expiry Date12/2020
    CVC123
  • Diners Club
    36961903000009
    Expiry Date12/2020
    CVC123

Psp Payment Supported Countries

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

About Psp Payment

As a subsidiary of S5, PSP Payment provides a wide range of payment gateway solutions to online merchants, from online to mobile payments. It is a fully compliant P2Pe card present payment gateway, that handles every single detail, from performing certifications, setting up ISO agreements, handling logistic, providing 24/7 support etc.

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