Get the current status of a pre-authorization.

IPCPreAuthStatus ipcGetPreAuthStatus = new IPCPreAuthStatus();
ipcGetPreAuthStatus.setOrderId(orderId);
ipcGetPreAuthStatus.setOnCommandCompleteListener(new IPCPreAuthStatus.OnCommandCompleteListener() {
    @Override
    public void onCommandCompleted(final int preAuthStatus, String expDate) {
    }

    @Override
    public void onError(final int status) {
    }
});
ipcGetPreAuthStatus.sendRequest();

 

The possible statuses are:

MyPos.PREAUTHORIZATION_PENDING
MyPos.PREAUTHORIZATION_CAPTURED
MyPos.PREAUTHORIZATION_DECLINED
MyPos.PREAUTHORIZATION_REVERSED
MyPos.PREAUTHORIZATION_CANCELLED