authscape 1.0.36 → 1.0.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -62,45 +62,45 @@ export default function PaymentModal({title, description, amount, priceId, setIs
62
62
  };
63
63
  }
64
64
 
65
- const PaymentMethod = ({id, last4, clicked}) => {
66
- return (
67
- <Box fullWidth={true} sx={{height: 160, width:"100%", marginTop:2, backgroundColor:"#2196F3", position:"relative", border: "1px solid #2196F3", borderRadius: 1, display:"flex", flexDirection:"column", justifyContent:"center", textAlign:"center", cursor:"pointer"}}
68
- onClick={() => {
69
- clicked(id);
70
- }}>
71
- <Typography gutterBottom variant="body" component="div" sx={{fontSize:14, position:"absolute", left:15, top:10, color:"white"}}>
72
- Visa
73
- </Typography>
74
- {/* <Box sx={{position:"absolute", top:10, right:10, color:"#e9e9e9"}}>
75
- <DeleteRoundedIcon onClick={deleteClicked} />
76
- </Box> */}
77
- <Typography gutterBottom variant="body" component="div" sx={{verticalAlign:"middle", fontSize:18, color:"white"}}>
78
- * * * * &nbsp; * * * * &nbsp; * * * * &nbsp; {last4}
79
- </Typography>
80
-
81
- <Grid container spacing={1} sx={{position:"absolute", bottom:8, marginLeft:0, width: "100%"}}>
82
- <Grid item xs={6} sx={{paddingLeft:2}}>
83
- <Typography gutterBottom variant="body" component="div" sx={{textAlign:"left", fontSize:12, marginTop:1, paddingLeft:1, color:"#e9e9e9"}}>
84
- CARD HOLDER
85
- </Typography>
86
-
87
- <Typography gutterBottom variant="body" component="div" sx={{textAlign:"left", fontSize:12, marginTop:"-9px", paddingLeft:1, color:"white" }}>
88
- Brandon Zuech
89
- </Typography>
90
- </Grid>
91
- <Grid item xs={6} sx={{textAlign:"right", paddingRight:2}}>
92
- <Typography gutterBottom variant="body" component="div" sx={{fontSize:12, marginLeft:2, marginTop:1, color:"#e9e9e9"}}>
93
- EXPIRES
94
- </Typography>
95
-
96
- <Typography gutterBottom variant="body" component="div" sx={{fontSize:12, marginLeft:2, marginTop:"-9px", color:"white"}}>
97
- 08/21
98
- </Typography>
99
- </Grid>
100
- </Grid>
101
- </Box>
102
- );
103
- };
65
+ // const PaymentMethod = ({id, last4, clicked}) => {
66
+ // return (
67
+ // <Box fullWidth={true} sx={{height: 160, width:"100%", marginTop:2, backgroundColor:"#2196F3", position:"relative", border: "1px solid #2196F3", borderRadius: 1, display:"flex", flexDirection:"column", justifyContent:"center", textAlign:"center", cursor:"pointer"}}
68
+ // onClick={() => {
69
+ // clicked(id);
70
+ // }}>
71
+ // <Typography gutterBottom variant="body" component="div" sx={{fontSize:14, position:"absolute", left:15, top:10, color:"white"}}>
72
+ // Visa
73
+ // </Typography>
74
+ // {/* <Box sx={{position:"absolute", top:10, right:10, color:"#e9e9e9"}}>
75
+ // <DeleteRoundedIcon onClick={deleteClicked} />
76
+ // </Box> */}
77
+ // <Typography gutterBottom variant="body" component="div" sx={{verticalAlign:"middle", fontSize:18, color:"white"}}>
78
+ // * * * * &nbsp; * * * * &nbsp; * * * * &nbsp; {last4}
79
+ // </Typography>
80
+
81
+ // <Grid container spacing={1} sx={{position:"absolute", bottom:8, marginLeft:0, width: "100%"}}>
82
+ // <Grid item xs={6} sx={{paddingLeft:2}}>
83
+ // <Typography gutterBottom variant="body" component="div" sx={{textAlign:"left", fontSize:12, marginTop:1, paddingLeft:1, color:"#e9e9e9"}}>
84
+ // CARD HOLDER
85
+ // </Typography>
86
+
87
+ // <Typography gutterBottom variant="body" component="div" sx={{textAlign:"left", fontSize:12, marginTop:"-9px", paddingLeft:1, color:"white" }}>
88
+ // Brandon Zuech
89
+ // </Typography>
90
+ // </Grid>
91
+ // <Grid item xs={6} sx={{textAlign:"right", paddingRight:2}}>
92
+ // <Typography gutterBottom variant="body" component="div" sx={{fontSize:12, marginLeft:2, marginTop:1, color:"#e9e9e9"}}>
93
+ // EXPIRES
94
+ // </Typography>
95
+
96
+ // <Typography gutterBottom variant="body" component="div" sx={{fontSize:12, marginLeft:2, marginTop:"-9px", color:"white"}}>
97
+ // 08/21
98
+ // </Typography>
99
+ // </Grid>
100
+ // </Grid>
101
+ // </Box>
102
+ // );
103
+ // };
104
104
 
105
105
  function TabPanel(props) {
106
106
  const { children, value, index, ...other } = props;
@@ -157,53 +157,22 @@ export default function PaymentModal({title, description, amount, priceId, setIs
157
157
  </Box>
158
158
  <TabPanel value={value} index={0}>
159
159
 
160
- <Select
160
+ {/* <Select
161
161
  sx={{marginTop:4}}
162
162
  fullWidth={true}
163
- //placeholder={"Select a payment type"}
164
- //labelId="demo-simple-select-label"
165
163
  id="demo-simple-select"
166
164
  value={paymentMethod}
167
- //label="Payment Type"
168
165
  onChange={(val) => {
169
166
  setPaymentMethod(val.target.value);
170
167
  }}>
171
168
  {paymentMethods != null && paymentMethods.map((paymentMethod) => {
172
169
  return (
173
170
  <MenuItem value={paymentMethod.id} fullWidth={true} sx={{width:"100%"}}>
174
-
175
-
176
-
177
171
  <PaymentMethod id={paymentMethod.id} last4={paymentMethod.last4} clicked={() => {
178
-
179
172
  }} />
180
-
181
-
182
- {/* <Box elevation={0} sx={{backgroundColor:"white"}}>
183
- <Stack direction="row" spacing={2}>
184
- <Box sx={{paddingTop:2}}>
185
- <img
186
- style={{marginTop:"9px"}}
187
- loading="lazy"
188
- width="50"
189
- src={'/images/cardType/' + paymentMethod.brand + ".png"}
190
- srcSet={'/images/cardType/' + paymentMethod.brand + ".png"}
191
- />
192
- </Box>
193
- <Box>
194
- <Box>
195
- {paymentMethod.funding.toUpperCase()}
196
- </Box>
197
- <Box>
198
- **** **** <small>{paymentMethod.last4}</small> &nbsp; <small>Expire: ({paymentMethod.expMonth}/{paymentMethod.expYear})</small>
199
- </Box>
200
- </Box>
201
- </Stack>
202
- </Box> */}
203
-
204
173
  </MenuItem>)
205
174
  })}
206
- </Select>
175
+ </Select> */}
207
176
 
208
177
  <Button startIcon={<PaymentRoundedIcon/>} type="submit" variant="contained" disabled={paymentMethod == null} sx={{marginTop:2}} onClick={async () => {
209
178
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "authscape",
3
- "version": "1.0.36",
3
+ "version": "1.0.37",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "index.js",