Show QR
METHOD NAME showQR
This method is Cancelable.
Requires state
IDLEand during process moves toPROMPT
Description
Display a QR code on the screen. This request responds immediately once the QR code on the custom screen is displayed. On a cancel event or when the specified timeout expires, the screen returns to the IDLE state.
Parameters
object
-
commandIdstringREQUIRED
Id that is used as a reference to cancel the command -
qrDatastringREQUIRED
The data to show inside the QR code. -
titlestring
The title at the top of the screen is displayed to the user -
bodystring
The message body on the screen displayed to the user -
timeoutint
The time in seconds before the screen displaying the QR code automatically disappears.
Default: 30 seconds. The value must be greater than zero -
cancelableboolean
A flag indicates if the user can cancel the operation from the selection screen. Defaulttrue
Result
null when a request is valid, and the QR is displayed
Errors
MissingParamsInvalidParamson incorrect OTPIllegalState
Example