fixed misleading error message regarding invalid merchant_id