completed velocity integration

This commit is contained in:
2026-05-27 19:01:24 +02:00
parent fec46fb6e9
commit 6fdd3183fb
29 changed files with 2760 additions and 2293 deletions

View File

@@ -34,6 +34,19 @@
<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.');
@@ -59,4 +72,4 @@
<body>
<script src="flutter_bootstrap.js" async></script>
</body>
</html>
</html>