Developers
Build with HisarPay
Add TRX and USDT payments to your site, app or bot. Finish the integration in test mode with a REST API, signed webhooks, official SDKs and ready-made plugins, then go live.
Start here
- Quick startYour first invoice, redirect and webhook in ten minutes.
- GuidesInvoices, links and withdrawals, step by step.
- API referenceEvery endpoint with parameters, schemas and example requests.
- SDKsOfficial libraries for Node.js, PHP and Python.
- PluginsWooCommerce, WordPress, OpenCart and WHMCS.
- Test modeSimulate every scenario without moving money.
The basics
Every request follows the same rules.
- Base URL
https://hisarpay.com/v1- Authentication
- Bearer key.
hp_test_works in test mode,hp_live_with real payments. - Amounts
- Decimal strings:
"49.90". USD takes 2 decimals, coins 6. - Safe retries
- Add an
Idempotency-Keyto POST requests; the response is kept for 24 hours.
curl https://hisarpay.com/v1/invoices \
-H "Authorization: Bearer $HISARPAY_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "price_usd": "49.90", "order_id": "order_1001" }'