When I process the payment I get a error massage it says Market type is invalid.

Authorize.net has two types of accounts: 

CP = Card Present or

CNP = Card not Present.

Depending on the type of the account you must in the QMerchant settings check or uncheck the Checkbox CPAccount.
CPAccount Check = CP,
CPAccount unchecked = CNP.

Please reverse the state of the check box.