Package com.jada.xml.psigate

Examples of com.jada.xml.psigate.Result


   
    String url = SERVICE_URL_SANDBOX;
    if (isProduction()) {
      url = SERVICE_URL_PRODUCTION;
    }
      Result result = null;
    try {
      result = callWebService(url, order);
    }
    catch (Exception e) {
      logger.error(e);;
      throw new PaymentException(e.getMessage());
    }
    String approved = result.getApproved();
    if (!approved.equals(RESULT_APPROVED)) {
      paymentMessage = result.getErrMsg();
      throw new AuthorizationException(approved + " - " + result.getErrMsg());
    }
    String transactionId = result.getReturnCode();
    String ids[] = transactionId.split(":");
    authCode = ids[1];
    paymentReference1 = transactionId;
    paymentReference2 = result.getTransRefNumber();
    paymentReference3 = result.getOrderID();
    paymentType = result.getPaymentType();
  }
View Full Code Here


    String url = SERVICE_URL_SANDBOX;
    if (isProduction()) {
      url = SERVICE_URL_PRODUCTION;
    }
      Result result = null;
    try {
      result = callWebService(url, order);
    }
    catch (Exception e) {
      logger.error(e);;
      throw new PaymentException(e.getMessage());
    }
    String approved = result.getApproved();
    if (!approved.equals(RESULT_APPROVED)) {
      paymentMessage = result.getErrMsg();
      throw new AuthorizationException(approved);
    }
    String transactionId = result.getReturnCode();
    String ids[] = transactionId.split(":");
    authCode = ids[1];
    paymentReference1 = transactionId;
    paymentReference2 = result.getTransRefNumber();
    paymentReference3 = result.getOrderID();
    paymentReference4 = "";
   
    paymentType = PAYMENT_TYPE;
   
    return;
View Full Code Here

    String url = SERVICE_URL_SANDBOX;
    if (isProduction()) {
      url = SERVICE_URL_PRODUCTION;
    }
      Result result = null;
    try {
      result = callWebService(url, order);
    }
    catch (Exception e) {
      logger.error(e);;
      throw new PaymentException(e.getMessage());
    }
    String approved = result.getApproved();
    if (!approved.equals(RESULT_APPROVED)) {
      paymentMessage = result.getErrMsg();
      throw new AuthorizationException(approved);
    }
    String transactionId = result.getReturnCode();
    String ids[] = transactionId.split(":");
    authCode = ids[1];
    paymentReference1 = transactionId;
    paymentReference2 = result.getTransRefNumber();
    paymentReference3 = result.getOrderID();
    paymentReference4 = "";
   
    paymentType = PAYMENT_TYPE;
   
    return;
View Full Code Here

    String url = SERVICE_URL_SANDBOX;
    if (isProduction()) {
      url = SERVICE_URL_PRODUCTION;
    }
      Result result = null;
    try {
      result = callWebService(url, order);
    }
    catch (Exception e) {
      logger.error(e);;
      throw new PaymentException(e.getMessage());
    }
    String approved = result.getApproved();
    if (!approved.equals(RESULT_APPROVED)) {
      paymentMessage = result.getErrMsg();
      throw new AuthorizationException(approved + " " + result.getErrMsg());
    }
    String transactionId = result.getReturnCode();
    String ids[] = transactionId.split(":");
    authCode = ids[1];
    paymentReference1 = transactionId;
    paymentReference2 = result.getTransRefNumber();
    paymentReference3 = result.getOrderID();
    paymentReference4 = "";
   
    paymentType = PAYMENT_TYPE;
   
    return;
View Full Code Here

   
    String url = SERVICE_URL_SANDBOX;
    if (isProduction()) {
      url = SERVICE_URL_PRODUCTION;
    }
      Result result = null;
    try {
      result = callWebService(url, order);
    }
    catch (Exception e) {
      logger.error(e);;
      throw new PaymentException(e.getMessage());
    }
    String approved = result.getApproved();
    if (!approved.equals(RESULT_APPROVED)) {
      paymentMessage = result.getErrMsg();
      throw new AuthorizationException(approved + " - " + result.getErrMsg());
    }
    String transactionId = result.getReturnCode();
    String ids[] = transactionId.split(":");
    authCode = ids[1];
    paymentReference1 = transactionId;
    paymentReference2 = result.getTransRefNumber();
    paymentReference3 = result.getOrderID();
    paymentType = result.getPaymentType();
  }
View Full Code Here

 
    String url = SERVICE_URL_SANDBOX;
    if (isProduction()) {
      url = SERVICE_URL_PRODUCTION;
    }
      Result result = null;
    try {
      result = callWebService(url, order);
    }
    catch (Exception e) {
      logger.error(e);;
      throw new PaymentException(e.getMessage());
    }
    String approved = result.getApproved();
    if (!approved.equals(RESULT_APPROVED)) {
      paymentMessage = result.getErrMsg();
      throw new AuthorizationException(approved + " - " + result.getErrMsg());
    }
    String transactionId = result.getReturnCode();
    String ids[] = transactionId.split(":");
    authCode = ids[1];
    paymentReference1 = transactionId;
    paymentReference2 = result.getTransRefNumber();
    paymentReference3 = result.getOrderID();
    paymentType = result.getPaymentType();
  }
View Full Code Here

   
    String url = SERVICE_URL_SANDBOX;
    if (isProduction()) {
      url = SERVICE_URL_PRODUCTION;
    }
      Result result = null;
    try {
      result = callWebService(url, order);
    }
    catch (Exception e) {
      logger.error(e);;
      throw new PaymentException(e.getMessage());
    }
    String approved = result.getApproved();
    if (!approved.equals(RESULT_APPROVED)) {
      paymentMessage = result.getErrMsg();
      throw new AuthorizationException(approved + " - " + result.getErrMsg());
    }
    String transactionId = result.getReturnCode();
    String ids[] = transactionId.split(":");
    authCode = ids[1];
    paymentReference1 = transactionId;
    paymentReference2 = result.getTransRefNumber();
    paymentReference3 = result.getOrderID();
    paymentType = result.getPaymentType();
  }
View Full Code Here

      }
    String responseXml = Utility.callWebService(url, orderXml);
      if (ApplicationGlobal.isLocalTesting()) {
        logger.debug("receive > " + responseXml);
      }
    Result result = unmarshall(responseXml);
    return result;
  }
View Full Code Here

      Unmarshaller unmarshaller = xmlContext.createUnmarshaller();
      unmarshaller.setClass(Result.class);
     
      StringReader stream = new StringReader(response);
      BufferedReader reader = new BufferedReader(stream);
      Result result = (Result) unmarshaller.unmarshal(reader);
      return result;
  }
View Full Code Here

TOP

Related Classes of com.jada.xml.psigate.Result

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.