This repository has been archived by the owner on Oct 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
paymentGateway.html
83 lines (69 loc) · 2.83 KB
/
paymentGateway.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Payment Gateway</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css">
<link rel="stylesheet" href="css/payment.css">
</head>
<body>
<script type="module">
import '/js/firebaseIntegration.js';
import '/js/firebaseAuth.js';
import "/js/eventManager.js";
const urlParams = new URLSearchParams(window.location.search);
const eventPrice = decodeURIComponent(urlParams.get('price'));
document.addEventListener('DOMContentLoaded', function () {
let priceViewItem = document.getElementById('priceView');
priceViewItem.innerHTML = `
<p style="text-align: center">Price: ${eventPrice}€</p>
`;
});
</script>
<div class="payment-form">
<div class="payment-title">
<img src="img/payment/pago.jpg">
</div>
<form>
<!-- Número de tarjeta -->
<div class="form-group icon-field">
<div class="label-and-icons">
<label for="cardNumber">Número de tarjeta</label>
<div class="icons-container"> <!-- Contenedor para los iconos -->
<img src="img/payment/mastercard.png" alt="Mastercard" class="payment-icon">
<img src="img/payment/paypal.png" alt="PayPal" class="payment-icon">
</div>
</div>
<div class="input-icon-container">
<i class="far fa-credit-card"></i>
<input type="text" id="cardNumber" name="cardNumber" placeholder="0000 0000 0000 0000" required>
</div>
</div>
<span class="info-text">ⓘ Introduce tu número de tarjeta</span>
<!-- Caducidad -->
<div class="form-inline">
<div class="form-group icon-field expiry-field">
<label for="expiryDate">Caducidad</label>
<div class="input-icon-container">
<i class="far fa-calendar-alt"></i>
<input type="text" id="expiryDate" name="expiryDate" placeholder="MM/AA" required maxlength="5">
</div>
</div>
<!-- CVV -->
<div class="form-group icon-field">
<label for="cvv">CVV</label>
<div class="input-icon-container">
<i class="fas fa-shield-alt"></i> <!-- Ícono del CVV dentro del campo -->
<input type="text" id="cvv" name="cvv" placeholder="CVV" required maxlength="3">
</div>
</div>
</div>
<div id="priceView">
</div>
<input type="submit" value="Procesar Pago">
</form>
</div>
<script type="module" src="js/paymentScript.js"></script>
</body>
</html>