Decentralized Merchant Hub
Registration Fee: 50.00 USDT
Secret API Key
Webhook URL
Your gateway is ready for live traffic. Integrate the API into your checkout flow using our docs.
Add script tag and trigger LumicPay.open() on checkout button click.
<!-- Include LumicPay SDK -->
<script src="https://gatway.lumicsoft.online/lumic-pay-sdk.js"></script>
<!-- Trigger Modal -->
<script>
function pay() {
LumicPay.open({
merchantProxy: "0xYOUR_PROXY_ADDRESS",
amount: "50.00",
orderId: "INV-1001",
onSuccess: () => {
location.href = "success.php";
}
});
}
</script>
Fetch dynamic micro-decimal assigned amount from server before checkout.
<?php
$payload = json_encode([
"action" => "create_order",
"wallet" => "0xYOUR_PROXY_ADDRESS",
"amount" => 50.00,
"order_id" => "INV-1001"
]);
$ch = curl_init('https://gatway.lumicsoft.online/merchant_api.php');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $payload);
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/json']);
$response = json_decode(curl_exec($ch), true);
$exactAmount = $response['final_amount']; // e.g. 50.34 USDT
?>
Automatic HTTP POST notification sent to your webhook URL with API Key header verification.
<?php
// Verify API Key Header
$apiKey = "LMC_YOUR_SECRET_API_KEY";
$receivedKey = $_SERVER['HTTP_X_LUMIC_API_KEY'] ?? '';
if ($receivedKey !== $apiKey) {
http_response_code(401);
exit(json_encode(["error" => "Unauthorized"]));
}
$payload = json_decode(file_get_contents("php://input"), true);
if ($payload && $payload['status'] === 'success') {
$rawOrderId = $payload['raw_order_id']; // e.g. INV-1001
$paidAmount = $payload['amount']; // Received USDT Amount
$txHash = $payload['tx_hash']; // Blockchain Hash
// TODO: Update Order Status in Database
http_response_code(200);
echo json_encode(["status" => "acknowledged"]);
}
?>
JSON payload structure received on confirmed transaction.
{
"status": "success",
"tx_hash": "0x8c076c...",
"amount": 50.34,
"merchant": "0xproxy...",
"order_id": "myshop.com_INV-1001",
"raw_order_id": "INV-1001",
"domain": "myshop.com",
"timestamp": 1772102199
}