Node.js SDK
DXBNK

Official Node.js SDK to integrate DXBNK in server-side applications. Optimized for microservices, REST APIs and high-performance applications.

4

Steps

20min

Total time

Node 16+

Compatibility

Intermediate

Difficulty

Integration Guide

Implement DXBNK in your Node.js application in 4 steps

1. SDK Installation

Install the Node.js SDK from npm

2 min
Easy

Overview

The DXBNK Node.js SDK is the most efficient way to integrate our services in server-side applications. Optimized for microservices and high-performance APIs.

Instructions

  1. 1Make sure you have Node.js 16+ installed
  2. 2Create a new project or use an existing one
  3. 3Install the SDK: npm install @dxbnk/sdk-node
  4. 4Verify installation by importing the module
  5. 5Configure your API key

Tips

  • Use npm or yarn according to your preference
  • The SDK includes TypeScript definitions
  • Compatible with CommonJS and ES modules
  • Includes automatic data validation

Example

# Crear nuevo proyecto
mkdir dxbnk-nodejs-app
cd dxbnk-nodejs-app
npm init -y

# Instalar SDK
npm install @dxbnk/sdk-node

# O usando yarn
yarn add @dxbnk/sdk-node

# O usando pnpm
pnpm add @dxbnk/sdk-node

# Verificar instalación
node -e "console.log(require('@dxbnk/sdk-node').version)"

2. Initial Setup

Configure the DXBNK client

3 min
Easy

3. Wallet Management

Create and manage user wallets

5 min
Intermediate

4. Payment Processing

Integrate complete payment system

8 min
Advanced

SDK Features

Complete TypeScript with included types
Support for CommonJS and ES Modules
Automatic authentication management
Automatic retries on failures
Integrated data validation
Robust error handling
Compatible with Node.js 16+
No heavy dependencies

Code Examples

Quick examples of the most used functions

Create Wallet

Create a new wallet for a user

const wallet = await client.wallets.create({
  userId: 'user-123',
  currency: 'USD'
});

Check Balance

Get current wallet balance

const balance = await client.wallets.getBalance(
  'wallet-id'
);
console.log(balance.available);

Make Transfer

Transfer funds between wallets

const tx = await client.wallets.transfer({
  from: 'wallet-1',
  to: 'wallet-2',
  amount: 100,
  currency: 'USD'
});

Create Payment

Process a payment with DXBNK

const payment = await client.payments.create({
  amount: 5000,
  currency: 'USD',
  customerId: 'customer-123'
});

Node.js Compatibility

The SDK is compatible with multiple Node.js versions

VersionStatusNotes
Node.js 20.x (LTS)Fully SupportedRecommended for production
Node.js 18.x (LTS)Fully SupportedStable and tested
Node.js 16.xSupportedMinimum required version
Node.js 14.xNot SupportedUpdate to 16+

Ready to integrate DXBNK?

Download the complete SDK or check our detailed documentation to start integrating payments and wallets in your Node.js application.