Server Online

Server Status

0 Total Licenses
0 Active
0 Products

Supported Products

  • 🚔 PACRP CAD
  • 📱 PACRP MDT
  • 📹 PACRP Bodycam
  • 🤖 PACRP AI Partner
  • 🧭 Smart Ladder
  • 📦 Custom Product

License Verification Tester

API Documentation

POST /verify.php

Request Parameters

FieldTypeRequiredDescription
license_keystringYesLicense key (PACRP-XXXX-XXXX-XXXX)
domainstringYesRegistered domain
productstringYesProduct name

Success Response

{
  "success": true,
  "status": "active",
  "license_key": "PACRP-ABCD-1234-EFGH",
  "product": "PACRP CAD",
  "domain": "example.com",
  "expires_at": "lifetime",
  "features": ["basic", "premium"],
  "message": "License verified successfully",
  "timestamp": "2026-06-30T20:36:00+00:00"
}

Error Response

{
  "success": false,
  "message": "License not found, inactive, or domain mismatch",
  "timestamp": "2026-06-30T20:36:00+00:00"
}

Integration Examples

Client-side verification using Fetch API:

// Verify license from browser or Node.js
async function verifyLicense(licenseKey, domain, product) {
    const response = await fetch('https://yourserver.com/verify.php', {
        method: 'POST',
        headers: { 'Content-Type': 'application/json' },
        body: JSON.stringify({ license_key: licenseKey, domain, product })
    });
    return await response.json();
}

// Usage
verifyLicense('PACRP-ABCD-1234-EFGH', 'example.com', 'PACRP CAD')
    .then(data => console.log(data.success ? 'Valid' : 'Invalid'));

Server-side verification using cURL:

<?php
function verifyLicense($key, $domain, $product) {
    $ch = curl_init('https://yourserver.com/verify.php');
    curl_setopt($ch, CURLOPT_POST, true);
    curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query([
        'license_key' => $key,
        'domain' => $domain,
        'product' => $product
    ]));
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    $result = curl_exec($ch);
    curl_close($ch);
    return json_decode($result, true);
}

$license = verifyLicense('PACRP-ABCD-1234-EFGH', 'example.com', 'PACRP CAD');
if ($license['success']) {
    echo "License valid! Features: " . implode(', ', $license['features']);
} else {
    echo "Error: " . $license['message'];
}

Simple HTML form with vanilla JS:

<form id="licenseForm">
  <input type="text" id="key" placeholder="License Key" required>
  <input type="text" id="domain" placeholder="Domain" required>
  <select id="product">
    <option>PACRP CAD</option>
    <option>PACRP MDT</option>
  </select>
  <button type="submit">Verify</button>
</form>
<div id="result"></div>

<script>
document.getElementById('licenseForm').addEventListener('submit', async (e) => {
  e.preventDefault();
  const res = await fetch('verify.php', {
    method: 'POST',
    body: new FormData(e.target)
  });
  const data = await res.json();
  document.getElementById('result').textContent = 
    data.success ? 'Valid: ' + data.message : 'Invalid: ' + data.message;
});
</script>

FiveM/RedM server-side verification:

-- server.lua - Verify PACRP license on resource start
local LICENSE_SERVER = "https://yourserver.com/verify.php"
local CONFIG = {
    license_key = "PACRP-ABCD-1234-EFGH",
    domain = "your-fivem-server.com",
    product = "PACRP CAD"
}

function VerifyLicense()
    PerformHttpRequest(LICENSE_SERVER, function(status, body)
        if status == 200 then
            local data = json.decode(body)
            if data and data.success then
                print("[PACRP] License verified! Product: " .. data.product)
                print("[PACRP] Features: " .. table.concat(data.features, ", "))
            else
                print("[PACRP] License invalid: " .. (data.message or "Unknown"))
            end
        else
            print("[PACRP] Failed to contact license server")
        end
    end, "POST", "license_key=" .. CONFIG.license_key 
        .. "&domain=" .. CONFIG.domain 
        .. "&product=" .. CONFIG.product,
    { ["Content-Type"] = "application/x-www-form-urlencoded" })
end

AddEventHandler('onResourceStart', function(name)
    if name == GetCurrentResourceName() then
        Citizen.CreateThread(function()
            Citizen.Wait(2000)
            VerifyLicense()
        end)
    end
end)

Example Licenses

PACRP-ABCD-1234-EFGHactive

Product: PACRP CAD

Domain: example.com

PACRP-5678-IJKL-9012active

Product: PACRP Bodycam

Domain: myserver.net

PACRP-TEST-DEMO-0000active

Product: PACRP CAD

Domain: localhost

Quick Start

  1. Upload all files to your web server
  2. Add your licenses to licenses.json
  3. Call verify.php from your app
  4. Check success in the response
Tip: For production, always verify licenses server-side to prevent key exposure.