SDK Downloads

This page includes two official sample SDKs. Signature, query sorting, JSON normalization, and callback verification match the current server implementation.

For quick integration, download the ZIP package for your language. For custom wrapping, you can also download the client, signature helper, and examples separately.

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.
Install
npm install ./sdk/nodejs
Quick Example
import { UUGateClient } from 'uugate-openapi-sdk';

const client = new UUGateClient({
  baseUrl: 'https://api.uugate.com',
  merchantUid: '880001',
  apiKey: 'mch_xxxxxxxxxxxxxxxxxxxx',
});

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

PHP / Laravel SDK

For PHP 8.1+ and Laravel 10/11/12, with client, service provider, Facade, config file, and callback verifier.

Highlights
  • Supports Laravel auto-discovery for ServiceProvider and Facade.
  • Supports sending the four OpenAPI requests through UUGateClient or Facade.
  • Includes apiKey verification for pay-in and payout callbacks.
Install
composer config repositories.uugate-sdk path ./sdk/php-laravel
composer require uugate/openapi-laravel-sdk:*
Quick Example
use UUGate\OpenApi\Facades\UUGate;

$order = UUGate::createPayinOrder([
    'chainCode' => 'TRON',
    'tokenSymbol' => 'USDT',
    'merchantOrderNo' => 'M202604170001',
    'amount' => '100.00',
    'notifyUrl' => 'https://merchant.example.com/api/uugate/payin-notify',
]);