0; $ipPortCount = intval($order['ip_port_count'] ?? 0); $modCount = intval($order['mod_count'] ?? 0); if ($homeId <= 0) { return ['label' => 'PENDING', 'message' => 'Server record is queued for provisioning.', 'class' => 'status-badge status-pending']; } if (!$hasHome) { return ['label' => 'FAILED', 'message' => 'Provisioning error: billing order references a missing server home.', 'class' => 'status-badge status-failed']; } if ($ipPortCount <= 0 || $modCount <= 0) { return ['label' => 'PENDING', 'message' => 'Server created; install is pending final IP/mod setup.', 'class' => 'status-badge status-pending']; } return ['label' => 'INSTALL STARTED', 'message' => 'Server created and install/update trigger has been started or queued.', 'class' => 'status-badge']; } if ($db && $user_id > 0) { // Get recent orders for this user (just paid) $query = "SELECT o.*, s.service_name, CASE WHEN sh.home_id IS NULL THEN 0 ELSE 1 END AS has_home, (SELECT COUNT(*) FROM {$table_prefix}home_ip_ports hip WHERE hip.home_id = o.home_id) AS ip_port_count, (SELECT COUNT(*) FROM {$table_prefix}game_mods gm WHERE gm.home_id = o.home_id) AS mod_count FROM {$table_prefix}billing_orders o LEFT JOIN {$table_prefix}billing_services s ON o.service_id = s.service_id LEFT JOIN {$table_prefix}server_homes sh ON sh.home_id = o.home_id WHERE o.user_id = $user_id AND o.status = 'Active' ORDER BY o.order_date DESC LIMIT 10"; $result = mysqli_query($db, $query); if ($result) { while ($row = mysqli_fetch_assoc($result)) { $row['provision_state'] = billing_payment_success_provision_state($row); $orders[] = $row; $total_paid += floatval($row['price']); } } mysqli_close($db); } ?>
Your payment has been processed successfully
Transaction ID:
| Order ID | Server Name | Game | Duration | Status | Provisioning | Price |
|---|---|---|---|---|---|---|
| # | x | PAID |
|
$ |
Note: Your orders are being processed. If you don't see them listed above, please log into your account or contact support.