|
|
@@ -43,14 +43,14 @@ const Index = () => { |
|
|
|
|
|
|
|
|
|
|
|
React.useEffect(() => { |
|
|
|
if (params.transactionid != "" && params.webtoken != "") { |
|
|
|
if (params.webtoken != "") { |
|
|
|
loadForm(); |
|
|
|
} |
|
|
|
}, []); |
|
|
|
|
|
|
|
React.useEffect(() => { |
|
|
|
console.log(responeData) |
|
|
|
if (Object.keys(responeData).length > 0 && fpsmerchanttimeoutdatetime != "") { |
|
|
|
if (Object.keys(responeData).length > 0) { |
|
|
|
setTransactionData(responeData) |
|
|
|
} |
|
|
|
}, [responeData]); |
|
|
@@ -68,10 +68,13 @@ const Index = () => { |
|
|
|
const trnTime = date.getHours() + ":" + date.getMinutes() + ":" + date.getSeconds(); |
|
|
|
setTransactionDate(trnDate) |
|
|
|
setTransactionTime(trnTime) |
|
|
|
const params = new URLSearchParams(window.location.pathname); |
|
|
|
let transactionid = params.get("TRANSACTION_ID") |
|
|
|
|
|
|
|
HttpUtils.post({ |
|
|
|
url: paymentPath + paymentStatusApi + params.transactionid, |
|
|
|
url: paymentPath + paymentStatusApi + transactionid, |
|
|
|
params: { |
|
|
|
"apprefid": params.transactionid, |
|
|
|
"apprefid": transactionid, |
|
|
|
"webtoken": params.webtoken, |
|
|
|
}, |
|
|
|
onSuccess: function (responseData) { |
|
|
|