My Profile_


There are some common steps for every level 2/3 transaction that is processed.

  1. Instantiate the transaction object (such as PreAuth), and update it with object definitions that refer to the individual transaction.
  2. Instantiate the HttpsPostRequest connection object and update it with connection information, host information and the transaction object that you created in step 1. The HttpsPostRequest object and its mandatory variables apply to every transaction request.
  3. Instantiate the Receipt object, by invoking the HttpsPostRequest object's getReceipt() method. Use this object to retrieve the applicable response details.

HttpPostRequest Object

 HttpsPostRequest mpgReq = new HttpsPostRequest();

HttpsPostReuqest object mandatory values





Host URL



Canada QA:

Canada Production:



10 - character alphanumeric

Unique identifier provided by Moneris upon merchant account set up. You may locate your personal QA test store ID in your Developer Portal Profile by logging into the Developer Portal.

API Token


20 - character alphanumeric

Unique alphanumeric string assigned upon merchant account activation. To locate your API token, refer to the Merchant Resource Centre Admin Store Settings. The Merchant Resource Centre may be located at the following Canada QA URL or Canada Production URL. You may also locate the API token for your personal QA test store in your Developer Portal Profile by logging into the Developer Portal.