| @@ -49,6 +49,7 @@ const Index = () => { | |||
| const [fpsqrcodeurlPrd, setFpsqrcodeurlPrd] = React.useState(""); | |||
| const [fpsqrcodeurlFps, setFpsqrcodeurlFps] = React.useState(""); | |||
| const [browserType, setBrowserType] = React.useState(""); | |||
| const [sysEnv, setSysEnv] = React.useState(""); | |||
| const mobileBrowser = "Mobile"; | |||
| const desktopBrowser = "Desktop"; | |||
| @@ -159,6 +160,7 @@ const Index = () => { | |||
| */ | |||
| setResponeDataData(responseData) | |||
| const timeoutdatetime = responseData.fpsmerchanttimeoutdatetime | |||
| setSysEnv(responseData.sysEnv) | |||
| const searchString = "[UTC]"; | |||
| let convertedDateString = ""; | |||
| if ( timeoutdatetime.toString().includes(searchString) ){ | |||
| @@ -338,36 +340,42 @@ const Index = () => { | |||
| </Typography> | |||
| {browserType==mobileBrowser? | |||
| <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 variant="h3" sx={{ ml: 8, mt: 4, mr: 8, textAlign: "center" }}> | |||