浏览代码

success

master
Anna Ho 1年前
父节点
当前提交
64d2cd0d93
共有 3 个文件被更改,包括 9 次插入6 次删除
  1. +1
    -1
      src/pages/Payment/Card/index.js
  2. +7
    -4
      src/pages/Payment/PaymentSuccess.js
  3. +1
    -1
      src/routes/PublicUserRoutes.js

+ 1
- 1
src/pages/Payment/Card/index.js 查看文件

@@ -89,7 +89,7 @@ const Index = () => {
},
// "locale":"<locale>",
// "eserviceid":"<eserviceid>",
"returnurl": "http://"+window.location.hostname+"/paymentPage/success/"+paymentData.transactionid+"/"+paymentData.webtoken
"returnurl": "http://"+window.location.hostname+"/paymentPage/success/"+paymentData.webtoken
},
///{state:{transactionid:paymentData.transactionid,webtoken:paymentData.webtoken} }
onSuccess: function(responseData){


+ 7
- 4
src/pages/Payment/PaymentSuccess.js 查看文件

@@ -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) {


+ 1
- 1
src/routes/PublicUserRoutes.js 查看文件

@@ -79,7 +79,7 @@ const PublicDashboard = {
element: <Payment_Card/>
},
{
path: 'paymentPage/success/:transactionid/:webtoken',
path: 'paymentPage/success/:webtoken',
element: <Payment_Success/>
},
{


正在加载...
取消
保存