-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinvoice_comm_checkout.html
More file actions
186 lines (171 loc) · 7.18 KB
/
Copy pathinvoice_comm_checkout.html
File metadata and controls
186 lines (171 loc) · 7.18 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
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
<!DOCTYPE html>
<html lang="zxx" class="no-js">
<head>
<!-- Mobile Specific Meta -->
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Author Meta -->
<meta name="author" content="colorlib">
<!-- Meta Description -->
<meta name="description" content="">
<!-- Meta Keyword -->
<meta name="keywords" content="">
<!-- meta character set -->
<meta charset="UTF-8">
<!-- Site Title -->
<title>Flywire College</title>
<link href="https://fonts.googleapis.com/css?family=Poppins:100,200,400,300,500,600,700" rel="stylesheet">
<!--
CSS
============================================= -->
<link rel="stylesheet" href="css/linearicons.css">
<link rel="stylesheet" href="css/font-awesome.min.css">
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="css/magnific-popup.css">
<link rel="stylesheet" href="css/nice-select.css">
<link rel="stylesheet" href="css/animate.min.css">
<link rel="stylesheet" href="css/owl.carousel.css">
<link rel="stylesheet" href="css/main.css">
<script src="https://checkout.flywire.com/flywire-payment.js"></script>
</head>
<body>
<header id="header">
<div class="container main-menu" id="nav-menu">
</div>
</header><!-- #header -->
<!-- start banner Area -->
<section class="about-banner">
<div class="container">
<div class="row d-flex align-items-center justify-content-center">
<div class="about-content col-lg-12">
<h1 class="text-white">
View Balance and Pay - John Smith
</h1>
</div>
</div>
</div>
</section>
<!-- End banner Area -->
<!-- Start price Area -->
<section class="price-area section-gap">
<div class="container">
<div class="row d-flex justify-content-center">
<div class="menu-content pb-70 col-lg-8">
<div class="title text-center">
<div class="progress-table-wrap">
<div class="progress-table">
<div class="table-row">
<div class="serial"><b>Name</b></div>
<div class="country" id="student_name"></div>
</div>
<div class="table-row">
<div class="serial"><b>Student ID</b></div>
<div class="country" id="student_id"></div>
</div>
<div class="table-row">
<div class="serial"><b>Invoice No</b></div>
<div class="country" id="invoice_no"></div>
</div>
<div class="table-row">
<div class="serial"><b>Payment For</b></div>
<div class="country" id="payment_for"></div>
</div>
<div class="table-row">
<div class="serial"><b>Amount Due</b></div>
<div class="country" id="amount"></div>
</div>
<div class="table-row">
<div class="serial"><b>Payment status</b></div>
<div class="country" id="payment_status" style="color:red; font-weight:bold;">Unpaid</div>
</div>
</div>
</div>
<button id="pay">Pay with Flywire</button>
</div>
<br>
</div>
</div>
</div>
</section>
<!-- End price Area -->
<!-- start footer Area -->
<footer class="footer-area section-gap">
<div class="container" id="footer">
</div>
</footer>
<!-- End footer Area -->
<script src="js/nav.js"></script>
<script src="js/footer.js"></script>
<script src="js/flywire_parameters.js"></script>
<script>
document.getElementById("student_name").innerHTML = student_first_name + " " + student_last_name;
document.getElementById("student_id").innerHTML = student_id;
document.getElementById("invoice_no").innerHTML = invoice_no;
document.getElementById("payment_for").innerHTML = payment_for;
document.getElementById("amount").innerHTML = "$" + amount.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
if (typeof(payment_status) == "string") {
document.getElementById("payment_status").innerHTML = payment_status;
}
document.getElementById("newURL").href = "https://gateway.demo.flywire.com/v1/transfers?provider=" + portal_code + "&payment_destination=" + payment_destination + "&amount=" + amount + "&sender_email=" + sender_email + "&sender_first_name=" + sender_first_name + "&sender_last_name=" + sender_last_name + "&sender_address1=" + sender_address1 + "&sender_address2=" + sender_address2 + "&sender_state=" + sender_state + "&sender_city=" + sender_city + "&sender_zip=" + sender_zip_code + "&sender_phone=" + sender_phone + "&student_id=" + student_id + "&student_first_name=" + student_first_name + "&student_last_name=" + student_last_name + "&student_email=" + student_email;
document
.querySelector("#pay")
.addEventListener("click", function(e) {
e.preventDefault();
var config = {
// Set the target environment (demo, prod)
env: env,
// Set your unique code (may differ between environments)
recipientCode: portal_code,
// Set your preferred locale
locale: locale,
// Pass in required information
amount: 1000,
// Display the payer information input fields (true, false)
requestPayerInfo: true,
// Pass in payer information (all required if
// requestPayerInfo set to false)
firstName: "Guo Ting",
lastName: "Ting",
email: "guoting.foo@flywire.com",
phone: "+6512345678",
address: "Bugis Junction",
city: "Singapore",
country: "SG",
// Pass in custom information (based on your portal settings)
recipientFields: {
student_email: "johnsmith@flywire.com",
student_id: "A123456700",
student_first_name: "John",
student_last_name: "Smith"
},
// Set the return URL where payers are redirected to on completion
returnUrl: return_url,
// Enable payment status notification callbacks
callbackUrl: callback_url,
callbackId: "BKG12345-PMT54321",
onInvalidInput: function(errors) {
console.error(errors);
}
};
window.FlywirePayment.initiate(config).render();
});
</script>
<script src="js/vendor/jquery-2.2.4.min.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/vendor/bootstrap.min.js"></script>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBhOdIF3Y9382fqJYt5I_sswSrEw5eihAA"></script>
<script src="js/easing.min.js"></script>
<script src="js/hoverIntent.js"></script>
<script src="js/superfish.min.js"></script>
<script src="js/jquery.ajaxchimp.min.js"></script>
<script src="js/jquery.magnific-popup.min.js"></script>
<script src="js/jquery.tabs.min.js"></script>
<script src="js/jquery.nice-select.min.js"></script>
<script src="js/isotope.pkgd.min.js"></script>
<script src="js/waypoints.min.js"></script>
<script src="js/jquery.counterup.min.js"></script>
<script src="js/simple-skillbar.js"></script>
<script src="js/owl.carousel.min.js"></script>
<script src="js/mail-script.js"></script>
<script src="js/main.js"></script>
</body>
</html>