Store ID: | |
API Token: | |
PAN: | |
Amount: | |
Currency: (ISO code) | |
Exp Date: |
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(); } } }
No request has been made.