const ref = 'BK-' + Math.random().toString(36).slice(2, 8); // or your server ref const amount = Number((fareInfo?.fare ?? 0).toFixed(2)); const cur = 'CHF'; window.location.href = `/pay.html?ref=${encodeURIComponent(ref)}&amt=${amount.toFixed(2)}&cur=${encodeURIComponent(cur)}`;

Your ride details

Choose a future time (local).
Distance —
Estimated fare —