moneris-logo
Search
×

Moneris Developers_

E-Commerce Solutions
APIarrow_drop_down
Batch Uploadarrow_drop_down
Multi-Currency Pricing (MCP)arrow_drop_down
E-Fraudarrow_drop_down
Hosted Solutionsarrow_drop_down
Level 2/3arrow_drop_down
Apple Payarrow_drop_down
Google Payarrow_drop_down
Visa Checkoutarrow_drop_down
MasterCard MasterPassarrow_drop_down
Card Present Solutions
Pinpadarrow_drop_down
Shopping Cartsarrow_drop_down
editConfiguration
×

Configuration

Store ID:
API Token:
PAN:
Amount:
Currency:
(ISO code)
Exp Date:
RESET
Vault Administrative Transactions
Integration GuideInteractive Tool
Javakeyboard_arrow_down
Vault Lookup Maskedkeyboard_arrow_down

Sample ResLookupMasked

package Canada;
import JavaAPI.*;
public class TestCanadaResLookupMasked {
public static void main(String[] args) {
String store_id = "store5";
String api_token = "yesguy";
String data_key = "pi3ZMZoTTM8pLM9wuwws2KBxw";
String processing_country_code = "CA";
boolean status_check = false;
ResLookupMasked resLookupMasked = new ResLookupMasked(); 
resLookupMasked.setData(data_key);
HttpsPostRequest mpgReq = new HttpsPostRequest(); 
mpgReq.setProcCountryCode(processing_country_code);
mpgReq.setTestMode(true); //false or comment out this line for production transactions 
mpgReq.setStoreId(store_id);
mpgReq.setApiToken(api_token);
mpgReq.setTransaction(resLookupMasked);
mpgReq.setStatusCheck(status_check);
mpgReq.send();
try
{
Receipt receipt = mpgReq.getReceipt();
System.out.println("DataKey = " + receipt.getDataKey()); 
System.out.println("ResponseCode = " + receipt.getResponseCode()); 
System.out.println("Message = " + receipt.getMessage()); 
System.out.println("TransDate = " + receipt.getTransDate()); 
System.out.println("TransTime = " + receipt.getTransTime()); 
System.out.println("Complete = " + receipt.getComplete()); 
System.out.println("TimedOut = " + receipt.getTimedOut()); 
System.out.println("ResSuccess = " + receipt.getResSuccess()); 
System.out.println("PaymentType = " + receipt.getPaymentType()); 
System.out.println("Cust ID = " + receipt.getResCustId());
System.out.println("Phone = " + receipt.getResPhone());
System.out.println("Email = " + receipt.getResEmail());
System.out.println("Note = " + receipt.getResNote());
System.out.println("MaskedPan = " + receipt.getResMaskedPan()); 
System.out.println("Exp Date = " + receipt.getResExpdate()); 
System.out.println("Crypt Type = " + receipt.getResCryptType()); 
System.out.println("Avs Street Number = " + receipt.getResAvsStreetNumber()); 
System.out.println("Avs Street Name = " + receipt.getResAvsStreetName()); 
System.out.println("Avs Zipcode = " + receipt.getResAvsZipcode());
}
catch (Exception e)
{
e.printStackTrace();
}
}
}
ResLookupMasked Request
Response Listkeyboard_arrow_down

Actual ResLookupMasked Output

No request has been made.