Java SDK
Cliente Java de biblioteca padrão com quatro métodos API, assinatura, verificação de callbacks e exemplo de consulta somente leitura.
Destaques
- Inclui createPayinOrder, getPayinOrder, createExclusiveBinding e createPayoutOrder.
- O sucesso retorna o JSON de negócio original. Trate separadamente erros JSON e recusas HTTP com corpo vazio.
- Verifique callbacks com a API Key do pedido original e os bytes originais do corpo.
Instalação
cd uugate-java-sdk
javac -encoding UTF-8 -d build src/uugate/UUGateClient.java examples/Example.java
java -cp build ExampleExemplo rápido
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"));Download ZIP
Baixar Java SDK ZIPuugate-java-sdk.zip