The reason behind the “Invalid Merchant ID” error code is most likely that. It is indicating that the merchant account you have set up and the gateway are unable to establish a successful connection. It’s conceivable that the gateway was configured with the incorrect merchant ID.
This can be your incorrect typing, so you should double-check your numbers and then contact your processor to see if they made an error on their side.