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. |
| 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"
}'
<?php
$payload = [
'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',
];
$ch = curl_init('https://hivepay.site/api/v1/crypto-collection');
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => json_encode($payload),
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Content-Type: application/json',
'X-API-Key: YOUR_API_KEY',
'X-API-Secret: YOUR_API_SECRET',
'X-Account-Number: YOUR_ACCOUNT_NUMBER',
],
]);
$response = curl_exec($ch);
curl_close($ch);
$data = json_decode($response, true);
if ($data && !empty($data['success']) && !empty($data['data']['checkout_url'])) {
// Redirect customer to the secure crypto checkout page
header('Location: ' . $data['data']['checkout_url']);
exit;
}
const axios = require('axios');
async function createCryptoCheckout() {
const response = await axios.post('https://hivepay.site/api/v1/crypto-collection', {
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'
}, {
headers: {
'Content-Type': 'application/json',
'X-API-Key': 'YOUR_API_KEY',
'X-API-Secret': 'YOUR_API_SECRET',
'X-Account-Number': 'YOUR_ACCOUNT_NUMBER'
}
});
console.log('Checkout URL:', response.data.data.checkout_url);
}
createCryptoCheckout();
import requests
url = "https://hivepay.site/api/v1/crypto-collection"
headers = {
"Content-Type": "application/json",
"X-API-Key": "YOUR_API_KEY",
"X-API-Secret": "YOUR_API_SECRET",
"X-Account-Number": "YOUR_ACCOUNT_NUMBER"
}
data = {
"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"
}
response = requests.post(url, json=data, headers=headers)
result = response.json()
if result.get("success"):
print("Redirect customer to:", result["data"]["checkout_url"])
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.