Skip to content
HisarPay

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

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-Key to POST requests; the response is kept for 24 hours.
cURL
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" }'

All guides