-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
46 lines (40 loc) · 1.05 KB
/
index.php
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>PayPal JS + PHP - SDK Standard Integration</title>
<style>
body {
font-family: Arial, sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}
#container {
width: 100%;
max-width: 1280px;
margin: 0 auto;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
grid-gap: 0.5rem;
gap: 0.5rem;
}
</style>
</head>
<body>
<div id="container">
<h1>PayPal JS + PHP - SDK Standard Integration</h1>
<div id="paypal-button-container"></div>
<p id="result-message"></p>
</div>
<!-- Initialize the JS-SDK -->
<script src="https://www.paypal.com/sdk/js?client-id={CLIENT_ID}¤cy=EUR&components=buttons&enable-funding=venmo"
data-sdk-integration-source="developer-studio"></script>
<script src="checkout.js"></script>
</body>
</html>