-
Notifications
You must be signed in to change notification settings - Fork 0
/
thank_you_embed.html
151 lines (146 loc) · 5.64 KB
/
thank_you_embed.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
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
<!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://payment.flywire.com/assets/js/flywire.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">
Proceed to payment
</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-10">
<div class="title text-center">
<h1 class="mb-10">Thank you for applying, proceed to payment below</h1>
<div id="flywire-payex"></div>
</div>
</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 type="text/javascript">
var urlParams = new URLSearchParams(window.location.search);
if (urlParams.get('portal-code')) {
portal_code = urlParams.get('portal-code');
}
var amount = urlParams.get('amount');
amount = amount.replace('$', '');
amount = amount.replace(',', '');
console.log('provider: ' + portal_code);
console.log('payment_destination: ' + payment_destination);
console.log('amount: ' + amount);
console.log('sender_email: ' + urlParams.get('email'));
console.log('sender_first_name: ' + urlParams.get('first_name'));
console.log('sender_last_name: ' + urlParams.get('last_name'));
console.log('sender_address1: ' + urlParams.get('address'));
console.log('sender_state: ' + urlParams.get('state'));
console.log('sender_city: ' + urlParams.get('city'));
console.log('sender_phone: ' + urlParams.get('telephone'));
console.log('student_first_name: ' + urlParams.get('first_name'));
console.log('student_last_name: ' + urlParams.get('last_name'));
console.log('student_email: ' + urlParams.get('email'));
console.log('callback_url: ' + callback_url);
console.log('callback_id: ' + urlParams.get('paymentID'));
window.flywire.Payment.render({
// Set your environment
// demo, production
env: env,
// Set your preferred locale
// en, es-ES, zh-CN, ko, fr-FR, ja, pt-PT, ar, id
locale: locale,
// Set your institution unique Code
destination: portal_code,
theme: {
brandColor: "#3498db", // Any CSS color
chat: true, // true, false
footer: true, // true, false
skipCompletedSteps: true // true, false
},
provider: "embed",
amount: amount * 100,
sender_first_name: urlParams.get('first_name'),
sender_last_name: urlParams.get('last_name'),
sender_address1: urlParams.get('address'),
sender_state: urlParams.get('sender_state'),
sender_zip_code: urlParams.get('sender_zip'),
sender_phone: urlParams.get('telephone'),
sender_city: urlParams.get('city'),
sender_email: urlParams.get('email'),
student_email: urlParams.get('email'),
student_first_name: urlParams.get('first_name'),
student_last_name: urlParams.get('last_name'),
callback_url: callback_url,
callback_url: urlParams.get('paymentID'),
read_only: "student_id, student_first_name, student_last_name, student_email, amount"
}, "#flywire-payex");
</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>