82 lines
2.7 KiB
HTML
82 lines
2.7 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<!--
|
|
If you are serving your web app in a path other than the root, change the
|
|
href value below to reflect the base path you are serving from.
|
|
|
|
The path provided below has to start and end with a slash "/" in order for
|
|
it to work correctly.
|
|
|
|
For more details:
|
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base
|
|
|
|
This is a placeholder for base href that will be replaced by the value of
|
|
the `--base-href` argument provided to `flutter build`.
|
|
-->
|
|
|
|
<!-- Privacy-friendly analytics by Plausible -->
|
|
<script async src="https://plausible.velocityafrica.net/js/pa-NOCPVB_4rsj4DCjfHp8YT.js"></script>
|
|
<script>
|
|
window.plausible=window.plausible||function(){(plausible.q=plausible.q||[]).push(arguments)},plausible.init=plausible.init||function(i){plausible.o=i||{}};
|
|
plausible.init()
|
|
</script>
|
|
|
|
<base href="$FLUTTER_BASE_HREF">
|
|
|
|
<meta charset="UTF-8">
|
|
<meta content="IE=Edge" http-equiv="X-UA-Compatible">
|
|
<meta name="description" content="Move money faster">
|
|
<meta name="color-scheme" content="light">
|
|
<meta name="google-signin-client_id" content="77433712483-ng7pntvcpf6tnjccriuqm8dbna8vvp3b.apps.googleusercontent.com">
|
|
|
|
<!-- iOS meta tags & icons -->
|
|
<meta name="mobile-web-app-capable" content="yes">
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
|
<meta name="apple-mobile-web-app-title" content="qpay">
|
|
|
|
<link rel="icon" href="/favicon.ico" sizes="any">
|
|
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
|
|
|
|
<title>Velocity Pay</title>
|
|
<link rel="manifest" href="manifest.json">
|
|
<script type="text/javascript">
|
|
// If there's a pending transaction ID stored before redirecting to the
|
|
// payment gateway, forward to /poll/:id so Flutter can start polling
|
|
// for the result immediately.
|
|
(function() {
|
|
var txId = localStorage.getItem('pendingTransactionId');
|
|
if (txId) {
|
|
// The gateway redirected back to us. Clear the pending ID and
|
|
// navigate to /poll/:id using the path-based URL strategy.
|
|
localStorage.removeItem('pendingTransactionId');
|
|
window.location.replace('/poll/' + encodeURIComponent(txId));
|
|
}
|
|
})();
|
|
|
|
function configure(sessionID) {
|
|
if (typeof Checkout === 'undefined') {
|
|
throw new Error('Checkout SDK not loaded.');
|
|
}
|
|
|
|
Checkout.configure({
|
|
session: {
|
|
id: sessionID
|
|
}
|
|
});
|
|
}
|
|
|
|
function showEmbeddedPage() {
|
|
if (typeof Checkout === 'undefined') {
|
|
throw new Error('Checkout SDK not loaded.');
|
|
}
|
|
|
|
Checkout.showEmbeddedPage('#embed-target');
|
|
}
|
|
</script>
|
|
|
|
</head>
|
|
<body>
|
|
<script src="flutter_bootstrap.js" async></script>
|
|
</body>
|
|
</html> |