NodeJS

plus-sign-simple

Integrate NodeJS and Maxipago

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

Maxipago and NodeJS Integration Guide

When performing any call to maxiPago! base, the Merchant needs to identify itself using their
credentials. The Merchant receives their ID and Key when they sign up with maxiPago!

Using the ID and Key all platforms can be integrated with maxiPago! payment gateway.

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

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

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

Below there is a list of test cards available. The CVV field can be any value with 3 or 4 digits and the
expiration date just needs to be valid, it means in the future.
Type Test Number
American Express 378282246310005
American Express 371449635398431
MasterCard 5555555555554444
MasterCard 5111111111111100
Visa 4111111111111111
Visa 4012888888881881
Diners 30569309025904
JCB 3528888888888000

Maxipago Supported Countries

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

About Maxipago

The maxiPago payment gateway! is an API (application programming interface) that allows establishments to accept various means of payment, as well as allowing the use of various functionalities that optimize the day-to-day running of any business. A maxiPago! is integrated with the main purchasers of the market: Rede, Cielo, Getnet, besides having more than 10 functionalities that allow more economy in the day to day of our clients. The process with the maxiPago payment gateway! is simple and the charge is made per transaction. Supports local payments in Brazil, Mexico, Colombia and Chile.

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