-
Notifications
You must be signed in to change notification settings - Fork 0
/
dev.html.example
37 lines (37 loc) · 1.57 KB
/
dev.html.example
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
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Sportspay Widget</title>
<link rel="icon" href="data:image/gif;base64,R0lGODlhAQABAAAAACwAAAAAAQABAAAC">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<script src="dev.js"></script>
</head>
<body class="modal-open">
<div class="modal fade show" tabindex="-1" role="dialog" style="padding-right: 15px; display:block;">
<div class="modal-dialog" role="document" style="max-width: 383px;">
<div class="modal-content">
<div class="modal-body">
<div id="sportspaycc"></div>
</div>
</div>
</div>
</div>
<div class="modal-backdrop fade show"></div>
<script>
var sportspaycc = Elm.SportspayCC.init(
{
node: document.getElementById("sportspaycc"),
flags: {
sportspayHost: "https://replaceme", // Host comes from Sportspay API call.
sportspayApiKey: "replaceme", // API key comes from Sportspay API call.
transactionAmount: "$100.00", // For display purposes only, but should match your total sale with tax.
transactionUrl: "https://replaceme", // This is where to submit the resulting one time token in order to complete the payment.
cancelUrl: "https://replaceme" // This is where to send the user if they cancel the transaction.
}
}
)
</script>
</body>
</html>