Integrate NodeJS and Netaxept
Trexle connects NodeJS to Netaxept and 100+ other payment gateways using a single plugin for one time annual fee
Netaxept and NodeJS Integration Guide
Netaxept is a comprehensive online payment service provided by Nets. It enables merchants to offer their customers different ways to pay purchases easily and securely in webshops, mobile environment and call centre services. When using Netaxept, it is easy to pay with broad range of payment methods and currencies, and still meet high security requirements set for online paying.
Before making the integration towards Netaxept and start accepting payments, there are a few things you should take into account regarding agreements required, integration and testing. Please familiarize yourself to the following steps to get more information.
1. Sign product agreement in order to get credentials to Netaxept
2. Sign acquiring agreement in order to accept card payments
3. Sign agreements in order to accept other payment methods
4. Make API integration to get payments up-and-running
5. Test your implementation in order to make sure it works as intended
6. Go live in order to start accepting payments in production
Take the credentials you just obtained from Netaxept and navigate to Trexle dashboard, click Payments Gateways and select Netaxept from the drop down menu as shown below.
Fill into your Netaxept credential and click Add Gateway. Click the Activate button next to Netaxept, 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
Below you can find test cards that you can use when testing Netaxept in the test environment. Please note that in the test environment you cannot test 3D Secure authentication. Instead, all card payments are processed as unauthenticated.
Card number | Expiry date | Verification code | Type of transaction | Error or other notes | Response |
VISA | > today | Any 3 digits | All | None | OK |
4925000000000000 | |||||
VISA | > today | Any 3 digits | Register + Auth or Sale | REGISTER will go ok, but PROCESS (Auth) or PROCESS (Sale) will fail. | OK/99 |
4925000000000080 | Use this card to validate your error handling of the PROCESS (Auth) and PROCESS (Sale) calls. | ||||
VISA | > today | Any 3 digits | Register + Auth + Capture | REGISTER + PROCESS (Auth) + PROCESS (Capture) will go OK. | OK/OK/OK |
4925000000000060 | |||||
VISA | > today | Any 3 digits | Register + Sale | REGISTER will go ok, but PROCESS (Sale) will fail. | OK/99 |
4925000000000060 | Use this card to validate your error handling of the PROCESS (Sale) call. Also, use this card and call to verify your error handling of cards that have previously been stored successfully for Easy / Recurring payments, but now fails. Note that although PROCESS (Sale) is a combination of of AUTH and CAPTURE, the former will fail, while the two latter, and the other Process operations will succeed. | ||||
VISA | > today | Any 3 digits | Register + Auth + Capture | REGISTER and PROCESS (Auth) will go ok, but the PROCESS (Capture) will fail. | OK/OK/99 |
4925000000000070 | Use this card to validate your error handing of the PROCESS (Capture) call. | ||||
VISA | > today | Any 3 digits | Register + Sale | REGISTER and PROCESS (Sale) will go OK. | OK/99 |
4925000000000070 | |||||
MasterCard | > today | Any 3 digits | All | None | OK |
5413000000000000 | |||||
Maestro | > today | Any 3 digits | All | None | OK |
6761638084569580 | |||||
Diners Club | > today | Any 3 digits | All | None | OK |
36000000000222 | |||||
American Express | > today | Any 3 digits | All | None | OK |
375700000000002 | |||||
Bring | > today | Any 3 digits | All | None | OK |
5566530000000000 | |||||
Dankort | May-21 | 603 | All | None | OK |
5019994001300150 | |||||
PBS gift card | N/A | 794 | All | This test gift card has a balance of 1,00 in a given currency, e.g. 1 DKK. If the transaction amount is bigger than this, the payment window will request that the amount is split, and the rest of the amount is paid with another payment method. To test without split payment, adjust the test amount to 1 (e.g. 1 DKK) or less. | OK |
6075725999900790000 | |||||
Nets gift card / Gavekort | > today | 803 | SALE only | OK | |
9578351001074700000 | |||||
Nets gift card / Gavekort | > today | 745 | SALE only | Refused by Issuer | |
9578351001074700000 |
Netaxept Supported Countries
Netaxept 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 Netaxept and other +100 payment gateways with NodeJS and other dozen of e-commerce platforms.
About Netaxept
Netaxept specialises in powering digital payments. Netaxept connect banks, businesses and consumers via an international network facilitating digital payments. Spanning across the Nordic region, they provide a broad range of card services, account services, and payment solutions for merchants.. More and more companies decide to sell their merchandise or services via the Internet, and many consumers prefer online shopping rather than physical stores. Nets offer Netaxept payment solutions for online and mobile commerce, enabling small and large businesses to be paid via the Internet.
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.