feat: enhance payment flow with dynamic URL handling and improved error messaging
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user