UUGate
← Back to tutorial center

API integration

Integrate with the AI Integration Guide

Give the complete documentation and your requirements to an AI coding assistant, then validate requests and callbacks.

About 3 min readUpdated 2026-09-24

Step-by-step guide

Follow these steps in your own dashboard. Select an image to enlarge it.

  1. Open API Docs from the dashboard header, then AI Integration Guide in the developer center. Use Copy full document or Download Markdown and give the complete document to your AI coding assistant. Do not provide only an isolated endpoint example.

    Step 1 · Click to enlarge
  2. Describe your backend language, framework and version, existing order table, required pay-in or payout flow and callback route. Ask for a change plan and field mapping before code. Unclear fields should be clarified instead of inventing endpoints.

  3. Ask the assistant to implement Merchant UID + API Key configuration, HMAC-SHA256 request signing, order creation and queries, callback verification and idempotency. Represent amounts as strings with precise arithmetic. Request and callback signatures use different formats.

  4. Prefer the official Node.js or PHP / Laravel SDK. Other stacks must follow the same signing rules. Request environment templates, installation instructions and tests. Replace sample UIDs, amounts and addresses with your own business values.

  5. Share only public documentation, placeholder configuration and redacted errors with AI. Configure your real API Key yourself as UUGATE_API_KEY in the runtime environment. Never put it in chats, frontend code or the repository. Use fictional local test keys for signature and duplicate-callback tests.

  6. Read the order and callback debugging guides. Compare the official tool and generated code using equivalent request parameters and results. Then validate error handling, persistent idempotency and your callback service before connecting real business traffic. Generated code still needs acceptance testing.

AI integration here means using a coding assistant to build your own UUGate integration from the documentation. You do not need to give AI your payment key or create a special AI payment endpoint.

Prompt for your AI coding assistant (replace bracketed values)

Use the complete UUGate AI Integration Guide I provide as the API specification to add [pay-ins / exclusive wallets / single payouts] to my [backend language / framework / version] project.
First describe the business flow, order field mapping, callback route and questions needing clarification. Then write the code.
Read configuration from UUGATE_BASE_URL, UUGATE_MERCHANT_UID and UUGATE_API_KEY. Use placeholders here; do not request or generate real keys.
Implement request signing, order creation and queries, verification of the original callback rawBody, and database transactions with unique constraints to prevent duplicate credits. Validate the merchant, order, asset, amount and final status.
Provide installation instructions, environment templates, tests for valid, tampered and duplicate callbacks, and troubleshooting advice. Do not automatically call production order or payout endpoints.

Enlarge screenshot