fixing landing page
This commit is contained in:
75
build/web/index.html
Normal file
75
build/web/index.html
Normal file
@@ -0,0 +1,75 @@
|
||||
<!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`.
|
||||
-->
|
||||
<base href="/">
|
||||
|
||||
<meta charset="UTF-8">
|
||||
<meta content="IE=Edge" http-equiv="X-UA-Compatible">
|
||||
<meta name="description" content="Payments... but 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="apple-touch-icon" href="icons/velocity-icon-black.png">
|
||||
|
||||
<!-- Favicon -->
|
||||
<link rel="icon" type="image/png" href="favicon.png"/>
|
||||
|
||||
<title>Velocity</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>
|
||||
Reference in New Issue
Block a user