import { CloseOutlined } from "@ant-design/icons";
import { useEffect } from "react";
import { Navigate, useLocation } from "react-router-dom";
import SuccessIcon from "../components/Icon/SuccessIcon";
const PaymentStatus = () => {
const location = useLocation();
const responseMessage: any = location.state;
const redirect = responseMessage?.redirect;
const excessAmount = responseMessage?.response?.excessAmountReceivedInCrypto;
useEffect(() => {
if (redirect && excessAmount === 0) {
setTimeout(() => {
window.location.replace(`https://www.${redirect}`);
}, 3000);
}
}, [redirect, excessAmount]);
if (responseMessage === null) return
Payment was unsuccessful.
{responseMessage?.transfer && (We noticed you did not pay up to the requested amount. A refund process has been sent to your mail{" "}
)}