/
transactionResults.html
79 lines (73 loc) · 4.37 KB
/
transactionResults.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
<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<!--<![endif]-->
<head>
<title>Braintree Transaction Results | Carey Development Demos</title>
<meta content="This demo shows how to integrate Braintree with Spring Boot" name="description" />
<object th:include="fragments/head :: head" th:remove="tag"></object>
<script th:src="@{/javascript/demo.js}"></script>
</head>
<body class="page-container-bg-solid">
<div th:include="fragments/topmenuheader :: header"></div>
<div class="page-container">
<div class="page-content-wrapper">
<div class="page-head" style="background-color:#eff3f8;padding-top:40px">
<div class="container">
<div class="row" style="margin-bottom:30px">
<div class="col-md-12">
<div th:if="${isSuccess}" class="note note-success">
<h4 class="block">Success!</h4>
<p> Your test payment was processed successfully! Check out the details below. </p>
</div>
<div th:unless="${isSuccess}" class="note note-danger">
<h4 class="block">Problem</h4>
<p th:text="${transaction.getStatus()}"></p>
</div>
</div>
</div>
<div class="row" style="margin-bottom:30px">
<div class="portlet light portlet-fit ">
<div class="portlet-title">
<div class="caption">
<i class="icon-settings font-green"></i>
<span class="caption-subject font-green sbold uppercase" style="position:relative;top:2px">Transaction Details</span>
</div>
</div>
<div class="portlet-body">
<div class="table-scrollable table-scrollable-borderless">
<table class="table table-hover table-light">
<thead>
<tr class="uppercase">
<th> ID </th>
<th> Type </th>
<th> Amount </th>
<th> Status </th>
<th> Created </th>
</tr>
</thead>
<tbody>
<tr>
<td th:text="${transaction.getId()}"></td>
<td th:text="${transaction.getType()}"></td>
<td th:text="${transaction.getAmount()}"></td>
<td th:text="${transaction.getStatus()}"></td>
<td th:text="${new java.text.SimpleDateFormat('yyyy-MM-dd HH:mm:ss Z').format(transaction.getUpdatedAt().getTime())}"></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<button type="button" class="btn green" style="margin-top:15px" onclick="location.href='/checkouts/new'">Another Transaction</button>
</div>
</div>
</div>
</div>
</div>
<div th:include="fragments/homefooter :: footer"></div>
<script th:src="@{/javascript/demo.js}"></script>
</body>
</html>