-
Notifications
You must be signed in to change notification settings - Fork 0
/
paypal.html
38 lines (33 loc) · 1.06 KB
/
paypal.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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="css/registration.css">
<!-- Add meta tags for mobile and IE -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<style>
/* Media query for mobile viewport */
@media screen and (max-width: 400px) {
#paypal-button-container {
width: 100%;
}
}
/* Media query for desktop viewport */
@media screen and (min-width: 400px) {
#paypal-button-container {
width: 250px;
}
}
</style>
</head>
<body>
<!-- Set up a container element for the button -->
<div id="paypal-button-container"></div>
<!-- Include the PayPal JavaScript SDK -->
<script src="https://www.paypal.com/sdk/js?client-id=sb¤cy=USD"></script>
<script>
// Render the PayPal button into #paypal-button-container
paypal.Buttons().render('#paypal-button-container');
</script>
</body>
</html>