Once you generate a QR code, it is available for 20 seconds. If it expires before you get the chance to scan it on the farebox, simply generate another QR code. You will only be charged for the QR code scanned on the farebox.