-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcarddetail.html
134 lines (108 loc) · 2.71 KB
/
carddetail.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>debit card details</title>
<style>
h1{
text-align: center;
padding-top: 10px;
border: 0px solid yellow;
}
#bottom_img>img{
border: 0px solid greenyellow;
width: 99%;
margin-top: 20px;
margin-bottom: 10px;
}
a{
text-decoration: none;
}
#debit_card {
border: 0px solid red;
width: 30%;
height: auto;
border-radius: 15px;
margin: auto;
/* background-color:#003b95; */
padding-bottom: 30px;
box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
margin-top: 20px;
}
button:hover {
background: yellow;
color: black;
}
#debit_card>button>a{
color: white;
}
form {
width: 300px;
margin:auto;
border:0px solid red;
}
form label {
display: flex;
margin-top: 20px;
padding-bottom: 10px;
border: 0px solid green;
}
form input {
width: 90%;
padding: 10px;
border: none;
border: 1px solid black;
border-radius: 5px;
}
button{
width: 100%;
height: 45px;
border-radius:5px ;
background-color: green;
color: white;
font-size: 20px;
}
</style>
</head>
<body>
<div id="debit_card">
<h1>Enter Your Card Details</h1>
<form>
<label>Card Number</label>
<input type="password" placeholder=" Enter Card Number 💳 " id="Email" >
<label>Name on Card</label>
<input type="text" placeholder="Enter Card Holder Name" id="mobile">
<label>OTP Authorization</label>
<input type="number" placeholder="Enter OTP" id="pass" >
<label> Expiry Date </label>
<input type="date">
<label>CVV</label>
<input type="password">
<div id="bottom_img"> <img src=" https://support.direct.ingenico.com/contentAsset/image/e26cb25b-7c66-4950-9ee1-86376f2e8cdb/fileAsset" alt=""> </div>
<button>Pay Now</button>
</form>
</div>
</body>
</html>
<script>
let payment=document.querySelector("form");
let Bag=JSON.parse(localStorage.getItem("pay"))||[]
payment.addEventListener("submit",function(event){
event.preventDefault();
let obj={
email:payment.Email.value,
mobile:payment.mobile.value,
pass:payment.pass.value
}
Bag.push(obj)
if (obj.email == "" || obj.mobile == "" || obj.pass == "") {
alert(" please fill correct card details")
} else {
localStorage.setItem("pay", JSON.stringify(Bag))
alert("your payment has been successfull 🎉 ")
window.location.href = "index.html";
}
})
</script>