From 044e5b057c4bbe14a52df99a611e52c1e2644b99 Mon Sep 17 00:00:00 2001 From: Alex Cheung Date: Tue, 9 Jan 2024 10:31:17 +0800 Subject: [PATCH] test locale --- src/pages/Payment/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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": [ // "", ""