HivePay Docs v1.0
Sign In Get API Keys
POST /api/v1/crypto-collection USDT • TRC20 • BEP20 • Solana

Crypto Checkout (USDT)

Generate secure, hosted cryptocurrency checkout sessions for customers anywhere in the world paying in USDT Tether across TRC20, BEP20, and Solana blockchains.

Supported Blockchains & Corridors

Customers can pay using their preferred network on the checkout page: TRC20 (Tron), BEP20 (BNB Chain), or Solana. Payments are automatically detected and credited to your HivePay USDT wallet within minutes of blockchain confirmation.

Request Parameters (JSON Body)

Parameter Type Required Description
amount number Required The amount to charge in USDT (e.g. 25.00). Min 5.00 USDT, max 5,000.00 USDT.
currency string Required Set strictly to USDT.
name string Required Customer full name or business identifier.
email string Required Customer email address for crypto payment receipt and transaction updates.
description string Optional Description of payment or invoice purpose shown on checkout receipt.
reference string Optional Your unique internal invoice reference ID.
return_url string Optional Redirect URL where customer is sent after completing payment on the checkout portal.

Code Example

curl -X POST https://hivepay.site/api/v1/crypto-collection \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "X-API-Secret: YOUR_API_SECRET" \
  -H "X-Account-Number: YOUR_ACCOUNT_NUMBER" \
  -H "Content-Type: application/json" \
  -d '{
    "amount": 50.00,
    "currency": "USDT",
    "name": "Alex Mercer",
    "email": "[email protected]",
    "description": "Payment for software license",
    "reference": "INV-USDT-9941",
    "return_url": "https://yourwebsite.com/checkout/complete"
  }'

Success Response (200 OK)

200 OK
{
  "success": true,
  "message": "Crypto checkout session created successfully.",
  "data": {
    "reference": "HP-COL-8924103B",
    "internal_reference": "chk_NAU6KWCqsdKMcZy3",
    "amount": 50.00,
    "currency": "USDT",
    "fee": 1.50,
    "net_amount": 48.50,
    "status": "pending",
    "checkout_url": "https://checkout.hivepay.co/pay?session=hp_chk_...",
    "session_id": "chk_NAU6KWCqsdKMcZy3"
  }
}

Redirect the customer to checkout_url. Once the customer completes the USDT transfer on the blockchain, HivePay sends a signed webhook payload to your registered webhook URL and credits your USDT merchant wallet.