If you are an M&T Merchant services user, once you log into your Merchant portal with your username and password, you will your merchant dashboard
Step 1. Log into your Merchant portal

Step 2. Click on the Settings link / icon, you will see the settings page.

Step 3. Click on the Account Information link, Merchant Information page will be displayed
You will find the Gateway ID on the page highlighted in the red colour box.