forked from paypal-examples/v6-web-sdk-sample-integration
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
39 lines (35 loc) · 1.03 KB
/
index.html
File metadata and controls
39 lines (35 loc) · 1.03 KB
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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Upstream Messages - Recommended Integration - PayPal Web SDK</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
</head>
<body>
<h1>Upstream Messages Recommended Integration</h1>
<h2>JS config to fetch and set options</h2>
<div id="message-background">
<paypal-message
id="paypal-message"
auto-bootstrap
amount="50"
currency-code="USD"
></paypal-message>
</div>
<!-- basic example product interaction -->
<p>
Amount: $<span id="total-amount">50</span>, Quantity:
<span id="quantity">1</span>
</p>
<fieldset>
<legend>Update the quantity of the items to adjust the amount</legend>
<input type="number" id="quantity-input" value="1" />
</fieldset>
<script src="app.js"></script>
<script
async
src="https://www.sandbox.paypal.com/web-sdk/v6/core"
onload="onPayPalLoaded()"
></script>
</body>
</html>