authscape 1.0.34 → 1.0.38
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,67 +62,65 @@ 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
|
-
|
|
106
|
-
|
|
107
|
-
function TabPanel(props) {
|
|
108
|
-
const { children, value, index, ...other } = props;
|
|
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
|
+
// };
|
|
104
|
+
|
|
105
|
+
// function TabPanel(props) {
|
|
106
|
+
// const { children, value, index, ...other } = props;
|
|
109
107
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
}
|
|
108
|
+
// return (
|
|
109
|
+
// <div
|
|
110
|
+
// role="tabpanel"
|
|
111
|
+
// hidden={value !== index}
|
|
112
|
+
// id={`simple-tabpanel-${index}`}
|
|
113
|
+
// aria-labelledby={`simple-tab-${index}`}
|
|
114
|
+
// {...other}
|
|
115
|
+
// >
|
|
116
|
+
// {value === index && (
|
|
117
|
+
// <Box sx={{ p: 3 }}>
|
|
118
|
+
// <Typography>{children}</Typography>
|
|
119
|
+
// </Box>
|
|
120
|
+
// )}
|
|
121
|
+
// </div>
|
|
122
|
+
// );
|
|
123
|
+
// }
|
|
126
124
|
|
|
127
125
|
return (
|
|
128
126
|
<Dialog
|
|
@@ -150,7 +148,7 @@ export default function PaymentModal({title, description, amount, priceId, setIs
|
|
|
150
148
|
<DialogContent>
|
|
151
149
|
{description}
|
|
152
150
|
|
|
153
|
-
<Box sx={{ width: '100%' }}>
|
|
151
|
+
{/* <Box sx={{ width: '100%' }}>
|
|
154
152
|
<Box sx={{ borderBottom: 1, borderColor: 'divider' }}>
|
|
155
153
|
<Tabs value={value} onChange={handleChange} aria-label="basic tabs example">
|
|
156
154
|
<Tab label="Existing Payment Method" {...a11yProps(0)} />
|
|
@@ -162,47 +160,16 @@ export default function PaymentModal({title, description, amount, priceId, setIs
|
|
|
162
160
|
<Select
|
|
163
161
|
sx={{marginTop:4}}
|
|
164
162
|
fullWidth={true}
|
|
165
|
-
//placeholder={"Select a payment type"}
|
|
166
|
-
//labelId="demo-simple-select-label"
|
|
167
163
|
id="demo-simple-select"
|
|
168
164
|
value={paymentMethod}
|
|
169
|
-
//label="Payment Type"
|
|
170
165
|
onChange={(val) => {
|
|
171
166
|
setPaymentMethod(val.target.value);
|
|
172
167
|
}}>
|
|
173
168
|
{paymentMethods != null && paymentMethods.map((paymentMethod) => {
|
|
174
169
|
return (
|
|
175
170
|
<MenuItem value={paymentMethod.id} fullWidth={true} sx={{width:"100%"}}>
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
171
|
<PaymentMethod id={paymentMethod.id} last4={paymentMethod.last4} clicked={() => {
|
|
180
|
-
|
|
181
172
|
}} />
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
{/* <Box elevation={0} sx={{backgroundColor:"white"}}>
|
|
185
|
-
<Stack direction="row" spacing={2}>
|
|
186
|
-
<Box sx={{paddingTop:2}}>
|
|
187
|
-
<img
|
|
188
|
-
style={{marginTop:"9px"}}
|
|
189
|
-
loading="lazy"
|
|
190
|
-
width="50"
|
|
191
|
-
src={'/images/cardType/' + paymentMethod.brand + ".png"}
|
|
192
|
-
srcSet={'/images/cardType/' + paymentMethod.brand + ".png"}
|
|
193
|
-
/>
|
|
194
|
-
</Box>
|
|
195
|
-
<Box>
|
|
196
|
-
<Box>
|
|
197
|
-
{paymentMethod.funding.toUpperCase()}
|
|
198
|
-
</Box>
|
|
199
|
-
<Box>
|
|
200
|
-
**** **** <small>{paymentMethod.last4}</small> <small>Expire: ({paymentMethod.expMonth}/{paymentMethod.expYear})</small>
|
|
201
|
-
</Box>
|
|
202
|
-
</Box>
|
|
203
|
-
</Stack>
|
|
204
|
-
</Box> */}
|
|
205
|
-
|
|
206
173
|
</MenuItem>)
|
|
207
174
|
})}
|
|
208
175
|
</Select>
|
|
@@ -240,7 +207,7 @@ export default function PaymentModal({title, description, amount, priceId, setIs
|
|
|
240
207
|
</Box>
|
|
241
208
|
</div>
|
|
242
209
|
</TabPanel>
|
|
243
|
-
</Box>
|
|
210
|
+
</Box> */}
|
|
244
211
|
|
|
245
212
|
</DialogContent>
|
|
246
213
|
<DialogActions>
|