authscape 1.0.33 → 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,47 +62,45 @@ export default function PaymentModal({title, description, amount, priceId, setIs
|
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
const PaymentMethod = ({id, last4, clicked}) => {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
);
|
|
105
|
-
};
|
|
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
|
+
// * * * * * * * * * * * * {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
|
+
// };
|
|
106
104
|
|
|
107
105
|
function TabPanel(props) {
|
|
108
106
|
const { children, value, index, ...other } = props;
|
|
@@ -125,7 +123,6 @@ export default function PaymentModal({title, description, amount, priceId, setIs
|
|
|
125
123
|
}
|
|
126
124
|
|
|
127
125
|
return (
|
|
128
|
-
<>
|
|
129
126
|
<Dialog
|
|
130
127
|
fullWidth={true}
|
|
131
128
|
maxWidth={"sm"}
|
|
@@ -160,53 +157,22 @@ export default function PaymentModal({title, description, amount, priceId, setIs
|
|
|
160
157
|
</Box>
|
|
161
158
|
<TabPanel value={value} index={0}>
|
|
162
159
|
|
|
163
|
-
<Select
|
|
160
|
+
{/* <Select
|
|
164
161
|
sx={{marginTop:4}}
|
|
165
162
|
fullWidth={true}
|
|
166
|
-
//placeholder={"Select a payment type"}
|
|
167
|
-
//labelId="demo-simple-select-label"
|
|
168
163
|
id="demo-simple-select"
|
|
169
164
|
value={paymentMethod}
|
|
170
|
-
//label="Payment Type"
|
|
171
165
|
onChange={(val) => {
|
|
172
166
|
setPaymentMethod(val.target.value);
|
|
173
167
|
}}>
|
|
174
168
|
{paymentMethods != null && paymentMethods.map((paymentMethod) => {
|
|
175
169
|
return (
|
|
176
170
|
<MenuItem value={paymentMethod.id} fullWidth={true} sx={{width:"100%"}}>
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
171
|
<PaymentMethod id={paymentMethod.id} last4={paymentMethod.last4} clicked={() => {
|
|
181
|
-
|
|
182
172
|
}} />
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
{/* <Box elevation={0} sx={{backgroundColor:"white"}}>
|
|
186
|
-
<Stack direction="row" spacing={2}>
|
|
187
|
-
<Box sx={{paddingTop:2}}>
|
|
188
|
-
<img
|
|
189
|
-
style={{marginTop:"9px"}}
|
|
190
|
-
loading="lazy"
|
|
191
|
-
width="50"
|
|
192
|
-
src={'/images/cardType/' + paymentMethod.brand + ".png"}
|
|
193
|
-
srcSet={'/images/cardType/' + paymentMethod.brand + ".png"}
|
|
194
|
-
/>
|
|
195
|
-
</Box>
|
|
196
|
-
<Box>
|
|
197
|
-
<Box>
|
|
198
|
-
{paymentMethod.funding.toUpperCase()}
|
|
199
|
-
</Box>
|
|
200
|
-
<Box>
|
|
201
|
-
**** **** <small>{paymentMethod.last4}</small> <small>Expire: ({paymentMethod.expMonth}/{paymentMethod.expYear})</small>
|
|
202
|
-
</Box>
|
|
203
|
-
</Box>
|
|
204
|
-
</Stack>
|
|
205
|
-
</Box> */}
|
|
206
|
-
|
|
207
173
|
</MenuItem>)
|
|
208
174
|
})}
|
|
209
|
-
</Select>
|
|
175
|
+
</Select> */}
|
|
210
176
|
|
|
211
177
|
<Button startIcon={<PaymentRoundedIcon/>} type="submit" variant="contained" disabled={paymentMethod == null} sx={{marginTop:2}} onClick={async () => {
|
|
212
178
|
|
|
@@ -248,6 +214,5 @@ export default function PaymentModal({title, description, amount, priceId, setIs
|
|
|
248
214
|
{/* <Button onClick={handleClose}>Close</Button> */}
|
|
249
215
|
</DialogActions>
|
|
250
216
|
</Dialog>
|
|
251
|
-
</>
|
|
252
217
|
)
|
|
253
218
|
}
|