Browse Source

test locale

master
Alex Cheung 1 year ago
parent
commit
044e5b057c
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/pages/Payment/index.js

+ 3
- 3
src/pages/Payment/index.js View File

@@ -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": [
// "<eserviceid>", "<eserviceid>"


Loading…
Cancel
Save