throw new ErrorCodeException(TransactionResult.ErrorCode.INVALID_CURRENCY_CODE, "TransactionResult.ErrorCode.INVALID_CURRENCY_CODE");
if(command.indexOf(':')!=-1) throw new ErrorCodeException(new IllegalArgumentException("command may not contain a colon (:): "+command), TransactionResult.ErrorCode.HASH_CHECK_FAILED, "TransactionResult.ErrorCode.HASH_CHECK_FAILED");
if(pin.indexOf(':')!=-1) throw new ErrorCodeException(new IllegalArgumentException("pin may not contain a colon (:): "+pin), TransactionResult.ErrorCode.HASH_CHECK_FAILED, "TransactionResult.ErrorCode.HASH_CHECK_FAILED");
hashData.append(command).append(':').append(pin).append(':').append(amount.toString()).append(':');
if(invoiceNumber!=null && invoiceNumber.length()>0) hashData.append(invoiceNumber);
request.put("UMhash", hash);
} catch(NoSuchAlgorithmException err) {
throw new ErrorCodeException(err, TransactionResult.ErrorCode.HASH_CHECK_FAILED, "TransactionResult.ErrorCode.HASH_CHECK_FAILED");
getProviderId(),
TransactionResult.CommunicationResult.LOCAL_ERROR,
err.getErrorCode().name(),
err.getErrorCode(),
err.getMessage(),
null,
null,
getProviderId(),
TransactionResult.CommunicationResult.GATEWAY_ERROR,
err.getErrorCode().name(),
err.getErrorCode(),
err.getMessage(),
null,
null,
throw new ErrorCodeException(TransactionResult.ErrorCode.HASH_CHECK_FAILED, "TransactionResult.ErrorCode.HASH_CHECK_FAILED");