diff --git a/src/pages/Payment/index.js b/src/pages/Payment/index.js index e0e64b8..21686e1 100644 --- a/src/pages/Payment/index.js +++ b/src/pages/Payment/index.js @@ -45,7 +45,7 @@ const Index = () => { const navigate = useNavigate() const location = useLocation(); - // const local = {en:"en-us", zh:"zh-hk", cn:"zh-cn"}; + const local = {en:"en-us", zh:"zh-hk", cn:"zh-cn"}; const preferpaymentmethods = ['visa', 'mastercard', 'pps', 'creditcard', 'fps']; const [totalAmount, setTotalAmount] = useState(0); const [appIds, setAppIds] = useState([]); @@ -133,7 +133,7 @@ const Index = () => { stateParams = { state: { amount: totalAmount, transactionid: transactionData.transactionid, webtoken: transactionData.webtoken, type: "PPS", paymentMethod: "01,PPSB,PPS" } } paymentMethod = "01,PPSB,PPS"; } - if (paymentMethod != "") { + if (paymentMethod != "") { HttpUtils.post({ url: UrlUtils.PAYMENT_CREATE, params: { @@ -156,7 +156,7 @@ const Index = () => { HttpUtils.post({ url: paymentPath + getAvailablePaymentUrl, params: { - // "locale": local.zh,; + "locale": local.zh, "amount": totalAmount, // "eserviceids": [ // "", ""