|
|
@@ -11,7 +11,7 @@ import * as React from "react"; |
|
|
|
import * as HttpUtils from "utils/HttpUtils"; |
|
|
|
import * as UrlUtils from "utils/ApiPathConst"; |
|
|
|
//import { useNavigate } from 'react-router-dom'; |
|
|
|
import { paymentPath } from "auth/utils"; |
|
|
|
// import { paymentPath } from "auth/utils"; |
|
|
|
import * as DateUtils from "utils/DateUtils" |
|
|
|
|
|
|
|
import Loadable from 'components/Loadable'; |
|
|
@@ -46,7 +46,7 @@ const Index = () => { |
|
|
|
// const [transactionDate, setTransactionDate] = React.useState(""); |
|
|
|
// const [transactionTime, setTransactionTime] = React.useState(""); |
|
|
|
const [onReady, setOnReady] = React.useState(false); |
|
|
|
const updatePaymentApi = "/api/payment/updatepayment"; |
|
|
|
// const updatePaymentApi = "/api/payment/updatepayment"; |
|
|
|
// const paymentStatusApi = "/api/payment/status/"; |
|
|
|
const intl = useIntl(); |
|
|
|
const { locale } = intl; |
|
|
@@ -81,7 +81,7 @@ const Index = () => { |
|
|
|
let receipt_token = params.get("RECEIPT_TOKEN").replace("%3D", "=") |
|
|
|
|
|
|
|
HttpUtils.post({ |
|
|
|
url: paymentPath + updatePaymentApi, |
|
|
|
url: UrlUtils.UPDATE_PAYMENT_API, |
|
|
|
params: { |
|
|
|
"transactionid": transactionid, |
|
|
|
"receipttoken": receipt_token, |
|
|
@@ -109,11 +109,12 @@ const Index = () => { |
|
|
|
// ) |
|
|
|
|
|
|
|
HttpUtils.post({ |
|
|
|
url: UrlUtils.PAYMENT_CALLBACK_STATUS_API+transactionid, |
|
|
|
url: UrlUtils.PAYMENT_CALLBACK_STATUS_API, |
|
|
|
params: { |
|
|
|
"apprefid": transactionid, |
|
|
|
"webtoken": localStorage.getItem("webtoken"), |
|
|
|
"paymentId": localStorage.getItem("paymentId") |
|
|
|
"paymentId": localStorage.getItem("paymentId"), |
|
|
|
"transactionid":Number(transactionid) |
|
|
|
}, |
|
|
|
onSuccess: function (responseData) { |
|
|
|
localStorage.removeItem("webtoken"); |
|
|
|