Node.js SDK
DXBNK
Official Node.js SDK to integrate DXBNK in server-side applications. Optimized for microservices, REST APIs and high-performance applications.
Steps
Total time
Compatibility
Difficulty
Integration Guide
Implement DXBNK in your Node.js application in 4 steps
1. SDK Installation
Install the Node.js SDK from npm
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
- 1Make sure you have Node.js 16+ installed
- 2Create a new project or use an existing one
- 3Install the SDK: npm install @dxbnk/sdk-node
- 4Verify installation by importing the module
- 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. Wallet Management
Create and manage user wallets
4. Payment Processing
Integrate complete payment system
SDK Features
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
| Version | Status | Notes |
|---|---|---|
| Node.js 20.x (LTS) | Fully Supported | Recommended for production |
| Node.js 18.x (LTS) | Fully Supported | Stable and tested |
| Node.js 16.x | Supported | Minimum required version |
| Node.js 14.x | Not Supported | Update 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.