feat: enhance payment flow with dynamic URL handling and improved error messaging

This commit is contained in:
hamed
2026-07-02 15:36:09 +03:30
parent 9e67ce4872
commit e83a666adb
4 changed files with 130 additions and 25 deletions
+3 -1
View File
@@ -10,8 +10,10 @@ function PaymentResultRedirect() {
useEffect(() => {
const paymentUuid = searchParams.get("payment_uuid");
const status = searchParams.get("status");
if (paymentUuid) {
router.replace(`/payment/${paymentUuid}`);
const q = status ? `?status=${status}` : "";
router.replace(`/payment/${paymentUuid}${q}`);
} else {
router.replace("/dashboard?sidebar=2");
}