payfrit-api/show_order.php
Kira c05bbe684f Add show_order.php redirect to receipt page
Legacy URL payfr.it/show_order.php?UUID=... was returning 404.
Added PHP redirect (301) to /receipt/index.php which has the actual receipt logic.
2026-03-22 21:28:36 +00:00

16 lines
382 B
PHP

<?php
/**
* Legacy redirect: show_order.php → /receipt/
* Old links (payfr.it/show_order.php?UUID=...) now point to the PHP receipt page.
*/
$uuid = $_GET['UUID'] ?? '';
$isAdminView = $_GET['is_admin_view'] ?? '0';
$params = http_build_query([
'UUID' => $uuid,
'is_admin_view' => $isAdminView,
]);
header("Location: /receipt/index.php?{$params}", true, 301);
exit;