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 ExampleQuick 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"));ZIP Download
Download Java SDK ZIPuugate-java-sdk.zip