QR codes can only be accessed while on the ship's network. Connect to the ship's wifi, then try scanning the QR code again.
No internet purchase required to use onboard.