Node.js SDK

Four SDKs are available: Node.js, Java, PHP and Go, with consistent API parameters, request signing, JSON bodies and callback verification.

Download the ZIP for your language. Each archive includes installation instructions, a client, signing utilities and examples.

Node.js SDK

For Node.js 18+ projects, with four API methods, request signing, callback verification, and a minimal example script.

Highlights
  • Includes createPayinOrder, getPayinOrder, createExclusiveBinding, and createPayoutOrder.
  • Request signing matches the server merchant-openapi-signature implementation.
  • Callback verification supports checking the raw request body string directly.
  • Account top-up example: configuration checks, callback verification and transactional idempotent crediting
Install
npm install ./uugate-nodejs-sdk
Quick Example
import { UUGateClient } from 'uugate-openapi-sdk';

const client = new UUGateClient({
  baseUrl: 'https://api.uugate.com',
  merchantUid: process.env.UUGATE_MERCHANT_UID,
  apiKey: process.env.UUGATE_API_KEY,
});

const order = await client.createPayinOrder({
  chainCode: 'TRON',
  tokenSymbol: 'USDT',
  merchantOrderNo: 'M202604170001',
  amount: '100.00',
  notifyUrl: 'https://merchant.example.com/api/uugate/payin-notify',
});