| @@ -49,6 +49,7 @@ const Index = () => { | |||||
| const [fpsqrcodeurlPrd, setFpsqrcodeurlPrd] = React.useState(""); | const [fpsqrcodeurlPrd, setFpsqrcodeurlPrd] = React.useState(""); | ||||
| const [fpsqrcodeurlFps, setFpsqrcodeurlFps] = React.useState(""); | const [fpsqrcodeurlFps, setFpsqrcodeurlFps] = React.useState(""); | ||||
| const [browserType, setBrowserType] = React.useState(""); | const [browserType, setBrowserType] = React.useState(""); | ||||
| const [sysEnv, setSysEnv] = React.useState(""); | |||||
| const mobileBrowser = "Mobile"; | const mobileBrowser = "Mobile"; | ||||
| const desktopBrowser = "Desktop"; | const desktopBrowser = "Desktop"; | ||||
| @@ -159,6 +160,7 @@ const Index = () => { | |||||
| */ | */ | ||||
| setResponeDataData(responseData) | setResponeDataData(responseData) | ||||
| const timeoutdatetime = responseData.fpsmerchanttimeoutdatetime | const timeoutdatetime = responseData.fpsmerchanttimeoutdatetime | ||||
| setSysEnv(responseData.sysEnv) | |||||
| const searchString = "[UTC]"; | const searchString = "[UTC]"; | ||||
| let convertedDateString = ""; | let convertedDateString = ""; | ||||
| if ( timeoutdatetime.toString().includes(searchString) ){ | if ( timeoutdatetime.toString().includes(searchString) ){ | ||||
| @@ -338,36 +340,42 @@ const Index = () => { | |||||
| </Typography> | </Typography> | ||||
| {browserType==mobileBrowser? | {browserType==mobileBrowser? | ||||
| <Typography variant="h3" sx={{ ml: 8, mt: 4, mr: 8, textAlign: "center" }}> | <Typography variant="h3" sx={{ ml: 8, mt: 4, mr: 8, textAlign: "center" }}> | ||||
| <Button | |||||
| component="span" | |||||
| variant="contained" | |||||
| size="large" | |||||
| color="primary" | |||||
| onClick={()=>{ | |||||
| mobliePayment(); | |||||
| }} | |||||
| sx={{ m: 4 }} | |||||
| >請選擇支付程式付款-Testing</Button> | |||||
| <Button | |||||
| component="span" | |||||
| variant="contained" | |||||
| size="large" | |||||
| color="primary" | |||||
| onClick={()=>{ | |||||
| mobliePaymentPrd(); | |||||
| }} | |||||
| sx={{ m: 4 }} | |||||
| >請選擇支付程式付款-PRD</Button> | |||||
| <Button | |||||
| component="span" | |||||
| variant="contained" | |||||
| size="large" | |||||
| color="primary" | |||||
| onClick={()=>{ | |||||
| mobliePaymentFps(); | |||||
| }} | |||||
| sx={{ m: 4 }} | |||||
| >請選擇支付程式付款-fps prefix</Button> | |||||
| { | |||||
| sysEnv=="prod"? | |||||
| <Button | |||||
| component="span" | |||||
| variant="contained" | |||||
| size="large" | |||||
| color="primary" | |||||
| onClick={()=>{ | |||||
| mobliePaymentPrd(); | |||||
| }} | |||||
| sx={{ m: 4 }} | |||||
| >請選擇支付程式付款</Button> | |||||
| : | |||||
| <> | |||||
| <Button | |||||
| component="span" | |||||
| variant="contained" | |||||
| size="large" | |||||
| color="primary" | |||||
| onClick={()=>{ | |||||
| mobliePayment(); | |||||
| }} | |||||
| sx={{ m: 4 }} | |||||
| >請選擇支付程式付款-Testing</Button> | |||||
| <Button | |||||
| component="span" | |||||
| variant="contained" | |||||
| size="large" | |||||
| color="primary" | |||||
| onClick={()=>{ | |||||
| mobliePaymentFps(); | |||||
| }} | |||||
| sx={{ m: 4 }} | |||||
| >請選擇支付程式付款-fps prefix</Button> | |||||
| </> | |||||
| } | |||||
| </Typography> | </Typography> | ||||
| : | : | ||||
| <Typography variant="h3" sx={{ ml: 8, mt: 4, mr: 8, textAlign: "center" }}> | <Typography variant="h3" sx={{ ml: 8, mt: 4, mr: 8, textAlign: "center" }}> | ||||