You could write a service endpoint that exposes an invoice/qr and then just load that in the frontend. no JS required