prepare(" SELECT p.*, c.brand, c.model, c.year, c.city, u.name as seller_name, u.phone as seller_phone FROM purchases p JOIN cars c ON p.car_id = c.id JOIN users u ON c.user_id = u.id WHERE p.transaction_id = ? AND (p.user_id = ? OR ?) "); $isAdmin = isset($_SESSION['role']) && $_SESSION['role'] === 'admin'; $stmt->execute([$txId, $_SESSION['user_id'], $isAdmin]); $data = $stmt->fetch(); if (!$data) { echo "

Invoice not found.

Back to Dashboard
"; require_once __DIR__ . '/includes/footer.php'; exit; } // Generate verification hash if missing (for legacy or just-in-time check) $verificationHash = $data['verification_token'] ?: $paymentService->generateVerificationToken($data['transaction_id'], $data['total_amount']); ?>
ENTERPRISE VERIFIED

AfgCars Enterprise

Secure Vehicle Transaction Module

OFFICIAL INVOICE

Invoice #:

Date:

Status:

Buyer Information

Transaction ID:

Seller Information

Status: Verified Premium Merchant

, Afghanistan

Item Description Amount (USD)
Model Vehicle - Base Price
$
Marketplace Service Fee
$
Automotive Sales Tax
$
Total Payable Amount $

Scan to Verify

SHA256 Verification Code

This official document is computer-generated and verified by AfgCars Enterprise Systems.

ESCROW STATUS: • PAYMENT METHOD:

Return to Dashboard