Java 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.

Java SDK

Java standard-library client with four API methods, request signing, callback verification and a read-only query example.

Highlights
  • Includes createPayinOrder, getPayinOrder, createExclusiveBinding, and createPayoutOrder.
  • Success returns the raw business JSON. Handle ordinary JSON errors and HTTP denials with empty bodies separately.
  • Verify callbacks using the original order API Key and raw request body bytes.
Install
cd uugate-java-sdk
javac -encoding UTF-8 -d build src/uugate/UUGateClient.java examples/Example.java
java -cp build Example
Quick Example
import uugate.UUGateClient;
import java.util.Map;

UUGateClient client = new UUGateClient("https://api.uugate.com",
    System.getenv("UUGATE_MERCHANT_UID"), System.getenv("UUGATE_API_KEY"));
String order = client.createPayinOrder(Map.of(
    "chainCode", "TRON", "tokenSymbol", "USDT",
    "merchantOrderNo", "M202604170001", "amount", "100.00",
    "notifyUrl", "https://merchant.example.com/api/uugate/payin-notify"));