Once the QR code is generated, how long is the code good for 24 hours, 48 hours? I googled for the answer with no success.
A QR code encoding…
an on-chain Bitcoin address remains valid indefinitely. Although address reuse is not recommended, it could be used for multiple payments.
a Lightning Invoice will be valid until the invoice times out (often 1h) or the invoice gets paid.