|
|
@@ -23,7 +23,7 @@ const PaymentDetails = Loadable(React.lazy(() => import('../Details_Public/Payme |
|
|
|
const DataGrid = Loadable(React.lazy(() => import('../Details_Public/DataGrid'))); |
|
|
|
|
|
|
|
import titleBackgroundImg from 'assets/images/dashboard/gazette-bar.png' |
|
|
|
import {FormattedMessage} from "react-intl"; |
|
|
|
import {FormattedMessage,useIntl} from "react-intl"; |
|
|
|
const BackgroundHead = { |
|
|
|
backgroundImage: `url(${titleBackgroundImg})`, |
|
|
|
width: '100%', |
|
|
@@ -52,7 +52,8 @@ const Fpscallback = () => { |
|
|
|
const [onReady, setOnReady] = React.useState(false); |
|
|
|
// const paymentStatusApi = "/api/payment/status/"; |
|
|
|
const [onDownload, setOnDownload] = React.useState(false); |
|
|
|
|
|
|
|
const intl = useIntl(); |
|
|
|
const { locale } = intl; |
|
|
|
|
|
|
|
React.useEffect(() => { |
|
|
|
loadForm(); |
|
|
@@ -162,8 +163,9 @@ const Fpscallback = () => { |
|
|
|
const params = new URLSearchParams(window.location.search); |
|
|
|
// window.print(); |
|
|
|
setOnDownload(true) |
|
|
|
const local = locale |
|
|
|
HttpUtils.fileDownload({ |
|
|
|
url: UrlUtils.GEN_PAYMENT_RECEIPT+"/"+params.get("PAYMENT_ID"), |
|
|
|
url: UrlUtils.GEN_PAYMENT_RECEIPT+"/"+params.get("PAYMENT_ID")+"/"+local, |
|
|
|
onResponse:()=>{ |
|
|
|
setOnDownload(false) |
|
|
|
}, |
|
|
|