Cancel
METHOD NAME cancel
Requires cancelable state
Description
Cancel any cancelable process. The method will return immediately; if it's processing, the canceled process will also return.
Example 1: Cancel the readCard process while waiting for a card will cause the readCard request to return with the result of CANCELED, and this cancel request will return successfully.
Example 2: Cancelling a transaction while waiting for the continueTransaction command will only cause the device to move back to the IDLE state, and this cancel request will be returned successfully.
Parameters
object
referenceIdstringREQUIRED
The reference id of the processing request
Result
null on success
Errors
MissingParamsInvalidParamson invalid referenceIdIllegalState